Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UppercaseTitleTest.php
Go to the documentation of this file.
1 <?php
7 
8 class UppercaseTitleTest extends \PHPUnit\Framework\TestCase
9 {
13  protected $_model;
14 
15  protected function setUp()
16  {
17  $this->_model = new \Magento\GoogleAdwords\Model\Filter\UppercaseTitle();
18  }
19 
23  public function dataProviderForFilterValues()
24  {
25  return [['some name', 'Some Name'], ['test', 'Test']];
26  }
27 
33  public function testFilter($inputValue, $returnValue)
34  {
35  $this->assertEquals($returnValue, $this->_model->filter($inputValue));
36  }
37 }