We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 574dae5 commit 73b4986Copy full SHA for 73b4986
tests/unit/payment-gateway-payment-token.php
@@ -309,5 +309,21 @@ public function test_set_image_url() {
309
$this->assertEquals( 'http://example.com/1234.jpg', $token->get_image_url() );
310
}
311
312
+ /**
313
+ * Tests \SV_WC_Payment_Gateway_Payment_Token::set_nickname()
314
+ *
315
+ * Also provides coverage for \SV_WC_Payment_Gateway_Payment_Token::get_nickname()
316
317
+ * @since 5.2.1
318
+ */
319
+ public function test_set_nickname() {
320
+
321
+ $token = new PluginFramework\SV_WC_Payment_Gateway_Payment_Token( 'mock-token', array() );
322
323
+ $token->set_nickname( 'new-payment-method' );
324
325
+ $this->assertEquals( 'new-payment-method', $token->get_nickname() );
326
+ }
327
328
329
0 commit comments