@@ -37,31 +37,33 @@ public function testGetConfigMethodShouldReturnExpectedKeys()
37
37
$ this ->assertArrayHasKey ('input_filters ' , $ config );
38
38
}
39
39
40
- public function testGetConfigMethodShouldReturnExpectedValues ()
40
+ public function testServiceManagerConfigShouldContainInputFilterManager ()
41
41
{
42
42
$ config = $ this ->module ->getConfig ();
43
43
44
- // Service manager
45
- $ this ->assertSame (
46
- [
47
- 'aliases ' => [
48
- 'InputFilterManager ' => InputFilterPluginManager::class,
49
- ],
50
- 'factories ' => [
51
- InputFilterPluginManager::class => InputFilterPluginManagerFactory::class,
52
- ],
53
- ],
54
- $ config ['service_manager ' ]
44
+ $ this ->assertArrayHasKey (
45
+ InputFilterPluginManager::class,
46
+ $ config ['service_manager ' ]['factories ' ]
55
47
);
48
+ }
56
49
57
- // Input filters
58
- $ this ->assertSame (
59
- [
60
- 'abstract_factories ' => [
61
- InputFilterAbstractServiceFactory::class,
62
- ],
63
- ],
64
- $ config ['input_filters ' ]
50
+ public function testServiceManagerConfigShouldContainAliasForInputFilterManager ()
51
+ {
52
+ $ config = $ this ->module ->getConfig ();
53
+
54
+ $ this ->assertArrayHasKey (
55
+ 'InputFilterManager ' ,
56
+ $ config ['service_manager ' ]['aliases ' ]
57
+ );
58
+ }
59
+
60
+ public function testInputFilterConfigShouldContainAbstractServiceFactory ()
61
+ {
62
+ $ config = $ this ->module ->getConfig ();
63
+
64
+ $ this ->assertContains (
65
+ InputFilterAbstractServiceFactory::class,
66
+ $ config ['input_filters ' ]['abstract_factories ' ]
65
67
);
66
68
}
67
69
0 commit comments