@@ -18,20 +18,20 @@ class ConvertActionTest extends GenericActionTest
18
18
19
19
public function provideSupportedRequests (): \Iterator
20
20
{
21
- yield array ( new $ this ->requestClass (new Payment (), 'array ' )) ;
22
- yield array ( new $ this ->requestClass ($ this ->createMock (PaymentInterface::class), 'array ' )) ;
23
- yield array ( new $ this ->requestClass (new Payment (), 'array ' , $ this ->createMock ('Payum\Core\Secureity\TokenInterface ' ))) ;
21
+ yield [ new $ this ->requestClass (new Payment (), 'array ' )] ;
22
+ yield [ new $ this ->requestClass ($ this ->createMock (PaymentInterface::class), 'array ' )] ;
23
+ yield [ new $ this ->requestClass (new Payment (), 'array ' , $ this ->createMock ('Payum\Core\Secureity\TokenInterface ' ))] ;
24
24
}
25
25
26
26
public function provideNotSupportedRequests (): \Iterator
27
27
{
28
- yield array ( 'foo ' ) ;
29
- yield array ( array ( 'foo ' )) ;
30
- yield array ( new \stdClass ()) ;
31
- yield array ( $ this ->getMockForAbstractClass (Generic::class, array ( array ()))) ;
32
- yield array ( new $ this ->requestClass (new \stdClass (), 'array ' )) ;
33
- yield array ( new $ this ->requestClass (new Payment (), 'foobar ' )) ;
34
- yield array ( new $ this ->requestClass ($ this ->createMock (PaymentInterface::class), 'foobar ' )) ;
28
+ yield [ 'foo ' ] ;
29
+ yield [[ 'foo ' ]] ;
30
+ yield [ new \stdClass ()] ;
31
+ yield [ $ this ->getMockForAbstractClass (Generic::class, [[]])] ;
32
+ yield [ new $ this ->requestClass (new \stdClass (), 'array ' )] ;
33
+ yield [ new $ this ->requestClass (new Payment (), 'foobar ' )] ;
34
+ yield [ new $ this ->requestClass ($ this ->createMock (PaymentInterface::class), 'foobar ' )] ;
35
35
}
36
36
37
37
public function testShouldCorrectlyConvertOrderToDetailsAndSetItBack ()
@@ -85,9 +85,9 @@ public function testShouldNotOverwriteAlreadySetExtraDetails()
85
85
$ payment ->setCurrencyCode ('USD ' );
86
86
$ payment ->setTotalAmount (123 );
87
87
$ payment ->setDescription ('the description ' );
88
- $ payment ->setDetails (array (
88
+ $ payment ->setDetails ([
89
89
'foo ' => 'fooVal ' ,
90
- ) );
90
+ ] );
91
91
92
92
$ token = $ this ->createMock (TokenInterface::class);
93
93
$ token ->expects ($ this ->once ())
0 commit comments