Skip to content
Snippets Groups Projects
Commit cbdfb718 authored by Pedro Faria's avatar Pedro Faria
Browse files

First filter test

parent 1ef0eb8d
No related branches found
No related tags found
No related merge requests found
<?php
namespace Drupal\Tests\fapi_validation\Unit\Filters;
use Drupal\Tests\UnitTestCase;
use Drupal\fapi_validation\Plugin\FapiValidationFilter\TrimFilter;
/**
* Tests generation of ice cream.
*
* @group fapi_validation
* @group fapi_validation_filters
*/
class TrimFilterTest extends UnitTestCase {
public function testValidString() {
$plugin = new TrimFilter;
$this->assertEquals('test', $plugin->filter(' test '));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment