ProviderTest.tpl
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * {provider}Test.php |
| 4 | * |
| 5 | * @package Embera |
| 6 | * @author Michael Pratt <yo@michael-pratt.com> |
| 7 | * @link http://www.michael-pratt.com/ |
| 8 | * |
| 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | * file that was distributed with this source code. |
| 11 | */ |
| 12 | |
| 13 | namespace Embera\Provider; |
| 14 | |
| 15 | use Embera\ProviderTester; |
| 16 | |
| 17 | /** |
| 18 | * Test the {provider} Provider |
| 19 | */ |
| 20 | final class {provider}Test extends ProviderTester |
| 21 | { |
| 22 | protected $tasks = [ |
| 23 | 'valid_urls' => [ |
| 24 | '', |
| 25 | '', |
| 26 | '', |
| 27 | ], |
| 28 | 'invalid_urls' => [ |
| 29 | '', |
| 30 | '', |
| 31 | '', |
| 32 | ], |
| 33 | 'normalize_urls' => [ |
| 34 | '' => '', |
| 35 | ], |
| 36 | 'fake_response' => [ |
| 37 | 'type' => '', |
| 38 | 'html' => '<iframe' |
| 39 | ] |
| 40 | ]; |
| 41 | |
| 42 | public function testProvider() |
| 43 | { |
| 44 | $this->validateProvider('{provider}', [ 'width' => 480, 'height' => 270]); |
| 45 | } |
| 46 | } |
| 47 |