Skip to content

Commit 4c703e1

Browse files
committed
Use isArray
1 parent bd8f602 commit 4c703e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/DependencyInjection/Factory/Security/TwoFactorFactoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,25 @@ private function expectDependingServicesCreated(): void
116116
$this->servicesFactory
117117
->expects($this->once())
118118
->method('createSuccessHandler')
119-
->with($this->container, self::FIREWALL_NAME, $this->isType('array'), self::TWO_FACTOR_FIREWALL_CONFIG_ID)
119+
->with($this->container, self::FIREWALL_NAME, $this->isArray(), self::TWO_FACTOR_FIREWALL_CONFIG_ID)
120120
->willReturn(self::SUCCESS_HANDLER_ID);
121121

122122
$this->servicesFactory
123123
->expects($this->once())
124124
->method('createFailureHandler')
125-
->with($this->container, self::FIREWALL_NAME, $this->isType('array'), self::TWO_FACTOR_FIREWALL_CONFIG_ID)
125+
->with($this->container, self::FIREWALL_NAME, $this->isArray(), self::TWO_FACTOR_FIREWALL_CONFIG_ID)
126126
->willReturn(self::FAILURE_HANDLER_ID);
127127

128128
$this->servicesFactory
129129
->expects($this->once())
130130
->method('createAuthenticationRequiredHandler')
131-
->with($this->container, self::FIREWALL_NAME, $this->isType('array'), self::TWO_FACTOR_FIREWALL_CONFIG_ID)
131+
->with($this->container, self::FIREWALL_NAME, $this->isArray(), self::TWO_FACTOR_FIREWALL_CONFIG_ID)
132132
->willReturn(self::AUTH_REQUIRED_HANDLER_ID);
133133

134134
$this->servicesFactory
135135
->expects($this->once())
136136
->method('createTwoFactorFirewallConfig')
137-
->with($this->container, self::FIREWALL_NAME, $this->isType('array'))
137+
->with($this->container, self::FIREWALL_NAME, $this->isArray())
138138
->willReturn(self::TWO_FACTOR_FIREWALL_CONFIG_ID);
139139

140140
$this->servicesFactory
@@ -155,7 +155,7 @@ private function expectDependingServicesCreated(): void
155155
$this->servicesFactory
156156
->expects($this->once())
157157
->method('createProviderPreparationListener')
158-
->with($this->container, self::FIREWALL_NAME, $this->isType('array'));
158+
->with($this->container, self::FIREWALL_NAME, $this->isArray());
159159
}
160160

161161
/**

0 commit comments

Comments
 (0)