118 - Updating the Other Tests

This commit is contained in:
Adam Wathan
2017-07-04 10:30:13 -04:00
parent ffee09b62a
commit b144cf5619
3 changed files with 13 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ class EditConcertTest extends TestCase
'state' => 'New state',
'zip' => '99999',
'ticket_price' => '72.50',
'ticket_quantity' => '10',
], $overrides);
}
@@ -169,6 +170,7 @@ class EditConcertTest extends TestCase
'state' => 'Old state',
'zip' => '00000',
'ticket_price' => 2000,
'ticket_quantity' => 5,
]);
$this->assertFalse($concert->isPublished());
@@ -184,6 +186,7 @@ class EditConcertTest extends TestCase
'state' => 'New state',
'zip' => '99999',
'ticket_price' => '72.50',
'ticket_quantity' => '10',
]);
$response->assertStatus(404);
@@ -198,6 +201,7 @@ class EditConcertTest extends TestCase
$this->assertEquals('Old state', $concert->state);
$this->assertEquals('00000', $concert->zip);
$this->assertEquals(2000, $concert->ticket_price);
$this->assertEquals(5, $concert->ticket_quantity);
});
}
@@ -217,6 +221,7 @@ class EditConcertTest extends TestCase
'state' => 'Old state',
'zip' => '00000',
'ticket_price' => 2000,
'ticket_quantity' => 5,
]);
$this->assertTrue($concert->isPublished());
@@ -232,6 +237,7 @@ class EditConcertTest extends TestCase
'state' => 'New state',
'zip' => '99999',
'ticket_price' => '72.50',
'ticket_quantity' => '10',
]);
$response->assertStatus(403);
@@ -246,6 +252,7 @@ class EditConcertTest extends TestCase
$this->assertEquals('Old state', $concert->state);
$this->assertEquals('00000', $concert->zip);
$this->assertEquals(2000, $concert->ticket_price);
$this->assertEquals(5, $concert->ticket_quantity);
});
}