Add test coverage for creating tasks
This commit is contained in:
parent
b9a451b528
commit
28c5729e48
8 changed files with 243 additions and 5 deletions
|
@ -50,7 +50,7 @@ class UpdateServerScheduleTest extends ClientApiIntegrationTestCase
|
|||
public function testErrorIsReturnedIfScheduleDoesNotBelongToServer()
|
||||
{
|
||||
[$user, $server] = $this->generateTestAccount();
|
||||
[, $server2] = $this->generateTestAccount();
|
||||
[, $server2] = $this->generateTestAccount(['user_id' => $user->id]);
|
||||
|
||||
$schedule = factory(Schedule::class)->create(['server_id' => $server2->id]);
|
||||
|
||||
|
|
Reference in a new issue