Exemplo n.º 1
0
 public function testCheckApplicationFilePermissions()
 {
     $this->filePermissions->expects($this->once())->method('getUnnecessaryWritableDirectoriesForApplication')->willReturn(['foo', 'bar']);
     $expectedMessage = "For security, remove write permissions from these directories: 'foo' 'bar'";
     $this->logger->expects($this->once())->method('log')->with($expectedMessage);
     $this->object->checkApplicationFilePermissions();
     $this->assertSame(['message' => [$expectedMessage]], $this->object->getInstallInfo());
 }