You are here

protected function AuxiliaryTest::assertExtensions in Autoload 7

Assert registered extensions for autoloading.

Parameters

string[] $extensions: Extensions list. Each one must start from dot.

1 call to AuxiliaryTest::assertExtensions()
ExtensionsTest::test in src/Tests/Unit/ExtensionsTest.php
Unit tests for auxiliary functions.

File

src/Tests/Unit/AuxiliaryTest.php, line 63

Class

AuxiliaryTest
Class AuxiliaryTest.

Namespace

Drupal\autoload\Tests\Unit

Code

protected function assertExtensions(array $extensions) {
  $this
    ->assertFalse(array_diff(autoload_extensions(), $extensions), 'Required extensions available.');
}