| 1 | <?php |
||
| 7 | class InvalidProviderTest extends AdminTestAbstract |
||
| 8 | { |
||
| 9 | public function testInvalidProvider() |
||
| 10 | { |
||
| 11 | $this->client->request('GET', self::BASE_PATH.'create?provider=foo'); |
||
| 12 | $this->assertEquals(Response::HTTP_INTERNAL_SERVER_ERROR, $this->client->getResponse()->getStatusCode()); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function testNoProviderLoadsProviderSelection() |
||
| 16 | { |
||
| 17 | $this->client->request('GET', self::BASE_PATH.'create'); |
||
| 18 | $this->assertEquals(Response::HTTP_OK, $this->client->getResponse()->getStatusCode()); |
||
| 19 | $this->assertContains('Select provider', $this->client->getResponse()->getContent()); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |