Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for Group Division #677

Open
wants to merge 33 commits into
base: dev
Choose a base branch
from
Open

Tests for Group Division #677

wants to merge 33 commits into from

Conversation

TLE931
Copy link

@TLE931 TLE931 commented Aug 27, 2024

written in PHP Pest framework. CI runs new tests automatically

@simonostendorf simonostendorf linked an issue Aug 29, 2024 that may be closed by this pull request
@simonostendorf simonostendorf added this to the Version 3.0.x milestone Aug 29, 2024
TLE931 and others added 2 commits August 30, 2024 11:23
- removed Unit testsuite
- removed env-variables for CI-test (those are in phpunit.xml)
@TLE931 TLE931 added the enhancement New feature or request label Aug 30, 2024
.github/workflows/ci.yml Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
app/Helpers/GroupBalancedDivision.php Outdated Show resolved Hide resolved
tests/Unit/ExampleTest.php Outdated Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
app/Helpers/GroupBalancedDivision.php Outdated Show resolved Hide resolved
database/factories/CourseFactory.php Outdated Show resolved Hide resolved
database/factories/GroupFactory.php Show resolved Hide resolved
});

test('reassign after new registrations', function () {
$reg_amount = 5;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in camelCase, as this is what we primarily use.


test('reassign after new registrations', function () {
$reg_amount = 5;
$reg_amount_later = 12;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in camelCase, as this is what we primarily use.

$reg_amount = 5;
$reg_amount_later = 12;

createUsers($reg_amount);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in camelCase, as this is what we primarily use.

$this->assignment->assign();

// queue position should be null for all registrations
expect($this->slot->registrations()->where('queue_position', null)->get()->count())->toEqual($reg_amount);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in camelCase, as this is what we primarily use.

// queue position should be null for all registrations
expect($this->slot->registrations()->where('queue_position', null)->get()->count())->toEqual($reg_amount);

createUsers($reg_amount_later);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in camelCase, as this is what we primarily use.

@simonostendorf simonostendorf modified the milestones: Version 3.0.x, 3.1.0 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Unit tests
4 participants