src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/FormViewSubscriberTest.php 1 location
|
@@ 61-70 (lines=10) @@
|
58 |
|
$this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber); |
59 |
|
} |
60 |
|
|
61 |
|
public function testSubscribedEvents() |
62 |
|
{ |
63 |
|
$this->assertSame( |
64 |
|
[RestEvents::VIEW => [ |
65 |
|
['onApi', -1000], |
66 |
|
['onView', -2000], |
67 |
|
]], |
68 |
|
$this->subscriber->getSubscribedEvents() |
69 |
|
); |
70 |
|
} |
71 |
|
|
72 |
|
public function testApiWithoutApi() |
73 |
|
{ |
src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/GridViewSubscriberTest.php 1 location
|
@@ 69-78 (lines=10) @@
|
66 |
|
$this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber); |
67 |
|
} |
68 |
|
|
69 |
|
public function testSubscribedEvents() |
70 |
|
{ |
71 |
|
$this->assertSame( |
72 |
|
[RestEvents::VIEW => [ |
73 |
|
['onApi', -2000], |
74 |
|
['onView', -1000], |
75 |
|
]], |
76 |
|
$this->subscriber->getSubscribedEvents() |
77 |
|
); |
78 |
|
} |
79 |
|
|
80 |
|
public function testApiWithoutApi() |
81 |
|
{ |
src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/PagerfantaViewSubscriberTest.php 1 location
|
@@ 75-84 (lines=10) @@
|
72 |
|
$this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber); |
73 |
|
} |
74 |
|
|
75 |
|
public function testSubscribedEvents() |
76 |
|
{ |
77 |
|
$this->assertSame( |
78 |
|
[RestEvents::VIEW => [ |
79 |
|
['onApi', -3000], |
80 |
|
['onView', -3000], |
81 |
|
]], |
82 |
|
$this->subscriber->getSubscribedEvents() |
83 |
|
); |
84 |
|
} |
85 |
|
|
86 |
|
public function testApiWithoutApi() |
87 |
|
{ |
src/Bundle/ResourceBundle/Tests/Rest/View/EventSubscriber/ResourceViewSubscriberTest.php 1 location
|
@@ 54-63 (lines=10) @@
|
51 |
|
$this->assertInstanceOf(EventSubscriberInterface::class, $this->subscriber); |
52 |
|
} |
53 |
|
|
54 |
|
public function testSubscribedEvents() |
55 |
|
{ |
56 |
|
$this->assertSame( |
57 |
|
[RestEvents::VIEW => [ |
58 |
|
['onApi', -4000], |
59 |
|
['onView', -4000], |
60 |
|
]], |
61 |
|
$this->subscriber->getSubscribedEvents() |
62 |
|
); |
63 |
|
} |
64 |
|
|
65 |
|
public function testApiWithoutApi() |
66 |
|
{ |