You are here

public function ImceFileTest::testType in IMCE 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/ImceFileTest.php \Drupal\Tests\imce\Unit\ImceFileTest::testType()

Test type.

File

tests/src/Unit/ImceFileTest.php, line 33

Class

ImceFileTest
Test ImceFile.

Namespace

Drupal\Tests\imce\Unit

Code

public function testType() {
  $this
    ->assertNotEmpty($this->imceFile->type);
  $this
    ->assertTrue(is_string($this->imceFile->type));
  $this
    ->assertEquals('file', $this->imceFile->type);
}