Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/Jobs/Group/UpdateTest.php
Show All 32 Lines | class UpdateTest extends TestCase | ||||
{ | { | ||||
$group = $this->getTestGroup('group@kolab.org', ['members' => []]); | $group = $this->getTestGroup('group@kolab.org', ['members' => []]); | ||||
$job = new \App\Jobs\Group\UpdateJob($group->id); | $job = new \App\Jobs\Group\UpdateJob($group->id); | ||||
$job->handle(); | $job->handle(); | ||||
// TODO: Test if group properties (members) actually changed in LDAP | // TODO: Test if group properties (members) actually changed in LDAP | ||||
$this->assertTrue(true); | $this->assertTrue(true); | ||||
// Test non-existing group ID | |||||
$job = new \App\Jobs\Group\UpdateJob(123); | |||||
$job->handle(); | |||||
$this->assertTrue($job->hasFailed()); | |||||
$this->assertSame("Group 123 could not be found in the database.", $job->failureMessage); | |||||
} | } | ||||
} | } |