/** * Verify that all path scan be retrieved. */ public function testRetrieveAllAvailablePaths() { $this->insert->execute($this->values); foreach ($this->manager->getPaths() as $path => $manager) { self::assertEquals($this->values['path'], $path, 'The path was not returned properly.'); self::assertEquals($this->values['contents'], $manager->getContents(), 'The file contents were not returned properly.'); self::assertEquals($this->values['modified'], $manager->getModified(), 'The last modified Unix timestamp was not returned properly.'); self::assertEquals($this->values['permissions'], $manager->getPermissions(), 'The Unix file permissions were not returned properly.'); self::assertEquals($this->values['type'], $manager->getType(), 'The type of the path was not returned properly.'); } }
/** * {@inheritdoc} */ public function getPaths() { return $this->database->getPaths(); }