@@ 81-106 (lines=26) @@ | ||
78 | $this->assertSame('Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==', $configuration['clients']['clustered']['connections'][0]['headers'][0]); |
|
79 | } |
|
80 | ||
81 | public function testShouldSetPagerProviderFlagToFalseByDefault() |
|
82 | { |
|
83 | $configuration = $this->getConfigs([ |
|
84 | 'clients' => [ |
|
85 | 'default' => ['host' => 'a_host', 'port' => 'a_port'], |
|
86 | ], |
|
87 | 'indexes' => [ |
|
88 | 'acme_index' => [ |
|
89 | 'types' => [ |
|
90 | 'acme_type' => [ |
|
91 | 'properties' => ['text' => null], |
|
92 | 'persistence' => [ |
|
93 | 'driver' => 'orm', |
|
94 | 'model' => 'AppBundle\Entity\Blog', |
|
95 | 'provider' => [/*'pager_provider' => true*/], |
|
96 | 'listener' => null, |
|
97 | 'finder' => null, |
|
98 | ] |
|
99 | ] |
|
100 | ] |
|
101 | ] |
|
102 | ] |
|
103 | ]); |
|
104 | ||
105 | $this->assertSame(false, $configuration['indexes']['acme_index']['types']['acme_type']['persistence']['provider']['pager_provider']); |
|
106 | } |
|
107 | ||
108 | public function testShouldAllowToSetPagerProviderExplicitly() |
|
109 | { |
|
@@ 108-133 (lines=26) @@ | ||
105 | $this->assertSame(false, $configuration['indexes']['acme_index']['types']['acme_type']['persistence']['provider']['pager_provider']); |
|
106 | } |
|
107 | ||
108 | public function testShouldAllowToSetPagerProviderExplicitly() |
|
109 | { |
|
110 | $configuration = $this->getConfigs([ |
|
111 | 'clients' => [ |
|
112 | 'default' => ['host' => 'a_host', 'port' => 'a_port'], |
|
113 | ], |
|
114 | 'indexes' => [ |
|
115 | 'acme_index' => [ |
|
116 | 'types' => [ |
|
117 | 'acme_type' => [ |
|
118 | 'properties' => ['text' => null], |
|
119 | 'persistence' => [ |
|
120 | 'driver' => 'orm', |
|
121 | 'model' => 'AppBundle\Entity\Blog', |
|
122 | 'provider' => ['pager_provider' => true], |
|
123 | 'listener' => null, |
|
124 | 'finder' => null, |
|
125 | ] |
|
126 | ] |
|
127 | ] |
|
128 | ] |
|
129 | ] |
|
130 | ]); |
|
131 | ||
132 | $this->assertSame(true, $configuration['indexes']['acme_index']['types']['acme_type']['persistence']['provider']['pager_provider']); |
|
133 | } |
|
134 | ||
135 | public function testLogging() |
|
136 | { |