FieldTargetTestBase.php in Feeds 8.3
File
tests/src/Unit/Feeds/Target/FieldTargetTestBase.php
View source
<?php
namespace Drupal\Tests\feeds\Unit\Feeds\Target;
use Drupal\feeds\FieldTargetDefinition;
use Drupal\Tests\feeds\Unit\FeedsUnitTestCase;
abstract class FieldTargetTestBase extends FeedsUnitTestCase {
protected abstract function getTargetClass();
public function testPrepareTarget() {
$method = $this
->getMethod($this
->getTargetClass(), 'prepareTarget')
->getClosure();
$this
->assertInstanceof(FieldTargetDefinition::class, $method($this
->getMockFieldDefinition()));
}
}