public function LibraryPolicyBuilderTest::setUp in Content-Security-Policy 8
Overrides UnitTestCase::setUp
File
- tests/
src/ Unit/ LibraryPolicyBuilderTest.php, line 56
Class
- LibraryPolicyBuilderTest
- @coversDefaultClass \Drupal\csp\LibraryPolicyBuilder @group csp
Namespace
Drupal\Tests\csp\UnitCode
public function setUp() : void {
parent::setUp();
$this->cache = new MemoryBackend();
$this->moduleHandler = $this
->getMockBuilder(ModuleHandler::class)
->disableOriginalConstructor()
->getMock();
$this->themeHandler = $this
->getMockBuilder(ThemeHandler::class)
->disableOriginalConstructor()
->getMock();
$this->libraryDiscovery = $this
->getMockBuilder(LibraryDiscovery::class)
->disableOriginalConstructor()
->getMock();
}