for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/yiiviet/yii2-payment
* @copyright Copyright (c) 2017 Yii Viet
* @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
*/
namespace yiiviet\tests\unit\payment;
use yiiviet\payment\BankWidget;
* Lớp BankWidgetTest
*
* @author Vuong Minh <[email protected]>
* @since 1.0.3
abstract class BankWidgetTest extends TestCase
{
protected function createWidget()
return new BankWidget([
'gateway' => $this->gateway,
'name' => 'a'
]);
}
public function testOutput()
$output = BankWidget::widget([
$this->assertNotEmpty($output);
public function testBankList()
$widget = $this->createWidget();
$this->assertNotEmpty($widget->provider->banks());