@@ -149,27 +149,27 @@ public function testSupportsVoid()
149
149
}
150
150
}
151
151
152
- public function testSupportsStore ()
152
+ public function testSupportsCreate ()
153
153
{
154
- $ supportsStore = $ this ->gateway ->supportsStore ();
155
- $ this ->assertInternalType ('boolean ' , $ supportsStore );
154
+ $ supportsCreate = $ this ->gateway ->supportsCreate ();
155
+ $ this ->assertInternalType ('boolean ' , $ supportsCreate );
156
156
157
- if ($ supportsStore ) {
158
- $ this ->assertInstanceOf ('Omnipay\Common\Message\RequestInterface ' , $ this ->gateway ->store ());
157
+ if ($ supportsCreate ) {
158
+ $ this ->assertInstanceOf ('Omnipay\Common\Message\RequestInterface ' , $ this ->gateway ->create ());
159
159
} else {
160
- $ this ->assertFalse (method_exists ($ this ->gateway , 'store ' ));
160
+ $ this ->assertFalse (method_exists ($ this ->gateway , 'create ' ));
161
161
}
162
162
}
163
163
164
- public function testSupportsUnstore ()
164
+ public function testSupportsDelete ()
165
165
{
166
- $ supportsUnstore = $ this ->gateway ->supportsUnstore ();
167
- $ this ->assertInternalType ('boolean ' , $ supportsUnstore );
166
+ $ supportsDelete = $ this ->gateway ->supportsDelete ();
167
+ $ this ->assertInternalType ('boolean ' , $ supportsDelete );
168
168
169
- if ($ supportsUnstore ) {
170
- $ this ->assertInstanceOf ('Omnipay\Common\Message\RequestInterface ' , $ this ->gateway ->unstore ());
169
+ if ($ supportsDelete ) {
170
+ $ this ->assertInstanceOf ('Omnipay\Common\Message\RequestInterface ' , $ this ->gateway ->delete ());
171
171
} else {
172
- $ this ->assertFalse (method_exists ($ this ->gateway , 'unstore ' ));
172
+ $ this ->assertFalse (method_exists ($ this ->gateway , 'delete ' ));
173
173
}
174
174
}
175
175
@@ -290,9 +290,9 @@ public function testVoidParameters()
290
290
}
291
291
}
292
292
293
- public function testStoreParameters ()
293
+ public function testCreateParameters ()
294
294
{
295
- if ($ this ->gateway ->supportsStore ()) {
295
+ if ($ this ->gateway ->supportsCreate ()) {
296
296
foreach ($ this ->gateway ->getDefaultParameters () as $ key => $ default ) {
297
297
// set property on gateway
298
298
$ getter = 'get ' .ucfirst ($ key );
@@ -301,15 +301,15 @@ public function testStoreParameters()
301
301
$ this ->gateway ->$ setter ($ value );
302
302
303
303
// request should have matching property, with correct value
304
- $ request = $ this ->gateway ->store ();
304
+ $ request = $ this ->gateway ->create ();
305
305
$ this ->assertSame ($ value , $ request ->$ getter ());
306
306
}
307
307
}
308
308
}
309
309
310
- public function testUnstoreParameters ()
310
+ public function testDeleteParameters ()
311
311
{
312
- if ($ this ->gateway ->supportsUnstore ()) {
312
+ if ($ this ->gateway ->supportsDelete ()) {
313
313
foreach ($ this ->gateway ->getDefaultParameters () as $ key => $ default ) {
314
314
// set property on gateway
315
315
$ getter = 'get ' .ucfirst ($ key );
@@ -318,7 +318,7 @@ public function testUnstoreParameters()
318
318
$ this ->gateway ->$ setter ($ value );
319
319
320
320
// request should have matching property, with correct value
321
- $ request = $ this ->gateway ->unstore ();
321
+ $ request = $ this ->gateway ->delete ();
322
322
$ this ->assertSame ($ value , $ request ->$ getter ());
323
323
}
324
324
}
0 commit comments