AutomatedCropFunctionalTest.php in Automated Crop 8
File
src/Tests/AutomatedCropFunctionalTest.php
View source
<?php
namespace Drupal\automated_crop\Tests;
use Drupal\simpletest\WebTestBase;
class AutomatedCropFunctionalTest extends WebTestBase {
public static $modules = [
'automated_crop',
'file',
];
protected $adminUser;
protected $testStyle;
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer image styles',
]);
$this->testStyle = $this->container
->get('entity.manager')
->getStorage('image_style')
->create([
'name' => 'test',
'label' => 'Test image style',
'effects' => [],
]);
$this->testStyle
->save();
}
public function testNothing() {
return $this
->assertTrue(TRUE, t('ok useless but necessary :P'));
}
}