1 | <?php |
||
9 | class MinimalEnvironmentTest extends FunctionalTestCase |
||
10 | { |
||
11 | protected $environment = 'minimal'; |
||
12 | |||
13 | public function testList() |
||
14 | { |
||
15 | $client = $this->makeClient(); |
||
16 | |||
17 | $client->request( |
||
18 | Request::METHOD_GET, |
||
19 | '/rest/minimalentities', |
||
20 | [], |
||
21 | [], |
||
22 | [] |
||
23 | ); |
||
24 | $content = $this->assertJsonResponse($client->getResponse()); |
||
25 | $this->assertCount(0, $content); |
||
26 | } |
||
27 | |||
28 | public function testBla() |
||
29 | { |
||
30 | $client = $this->makeClient(); |
||
31 | |||
32 | $this->expectException(NotFoundHttpException::class); |
||
33 | |||
34 | $client->request( |
||
35 | Request::METHOD_GET, |
||
36 | '/rest/test', |
||
37 | [], |
||
38 | [], |
||
39 | [] |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | protected function getFixtureClasses() |
||
47 | { |
||
48 | return []; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | protected static function getBundleClasses() |
||
55 | { |
||
56 | return [ |
||
57 | FrameworkBundle::class |
||
58 | ]; |
||
59 | } |
||
60 | } |
||
61 |