/**
  * @param array|string $allowed
  * @param array|string $disallowed
  * @param array|string $values
  * @test
  * @dataProvider invalidInlineChildrenFilterParametersDataProvider
  */
 public function areInlineChildrenFilteredWithInvalidParameters($allowed, $disallowed, $values)
 {
     $this->parameters = array('allowedFileExtensions' => $allowed, 'disallowedFileExtensions' => $disallowed, 'values' => $values);
     $this->tceMainMock->expects($this->never())->method('deleteAction');
     $this->fileFactoryMock->expects($this->never())->method('getFileReferenceObject');
     $this->filter->filterInlineChildren($this->parameters, $this->tceMainMock);
 }
Пример #2
0
 /**
  * @test
  * @covers ::clearSystemCache
  */
 public function clearSystemCacheClearsSystemCache()
 {
     $this->dataHandlerMock->expects($this->once())->method('clear_cacheCmd')->with('system');
     $this->subject->clearSystemCache();
 }