-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: dev
Are you sure you want to change the base?
Conversation
test classes for group course division and slot assignment
Added testing instructions
…ests' into feat/dev-division-tests
…achen/portals into feat/dev-division-tests
- updated CI for testing
test classes for group course division and slot assignment
Added testing instructions
- updated CI for testing
…ests' into feat/dev-division-tests
…at/dev-group-division-tests
- removed Unit testsuite - removed env-variables for CI-test (those are in phpunit.xml)
tests/Feature/SlotAssignmentTest.php
Outdated
}); | ||
|
||
test('reassign after new registrations', function () { | ||
$reg_amount = 5; |
There was a problem hiding this comment.
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.
tests/Feature/SlotAssignmentTest.php
Outdated
|
||
test('reassign after new registrations', function () { | ||
$reg_amount = 5; | ||
$reg_amount_later = 12; |
There was a problem hiding this comment.
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.
tests/Feature/SlotAssignmentTest.php
Outdated
$reg_amount = 5; | ||
$reg_amount_later = 12; | ||
|
||
createUsers($reg_amount); |
There was a problem hiding this comment.
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.
tests/Feature/SlotAssignmentTest.php
Outdated
$this->assignment->assign(); | ||
|
||
// queue position should be null for all registrations | ||
expect($this->slot->registrations()->where('queue_position', null)->get()->count())->toEqual($reg_amount); |
There was a problem hiding this comment.
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.
tests/Feature/SlotAssignmentTest.php
Outdated
// 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); |
There was a problem hiding this comment.
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.
- made tests for group division more random
written in PHP Pest framework. CI runs new tests automatically