You are here

public function WebpTest::setUp in WebP 8

Before a test method is run, setUp() is invoked.

Create new unit object.

Overrides UnitTestCase::setUp

File

tests/src/Unit/WebpTest.php, line 19

Class

WebpTest
Simple test to ensure that asserts pass.

Namespace

Drupal\Tests\webp\Unit

Code

public function setUp() {

  // Mock the class to avoid the constructor.
  $this->webp = $this
    ->getMockBuilder('\\Drupal\\webp\\Webp')
    ->disableOriginalConstructor()
    ->setMethods(NULL)
    ->getMock();
}