protected function AmpFormatterVideoTest::setUp in Accelerated Mobile Pages (AMP) 8.3
Overrides AmpFormatterTestBase::setUp
File
- tests/
src/ Functional/ AmpFormatterVideoTest.php, line 48
Class
- AmpFormatterVideoTest
- Tests AMP Video Formatter.
Namespace
Drupal\Tests\amp\FunctionalCode
protected function setUp() {
parent::setUp();
// Add field to the test content type.
$fieldSettings = [
'file_directory' => 'testing',
'file_extensions' => 'mp4',
];
$this
->createFileField($this->fieldName, 'node', $this->contentType, [], $fieldSettings);
$this
->configureDisplay();
}