private function getFakeDatabaseSnapshot() { $factory = new ContentSnapshotFactory(new Parser()); return $factory->makeSnapshotFromYmlFile('tests/assets/basic.yml'); }
/** *@test */ public function it_throws_an_exception_if_there_is_no_pages_array_described_in_the_yml_file() { $factory = new ContentSnapshotFactory(new Parser()); $this->setExpectedException(InvalidStructureException::class); $factory->makeSnapshotFromYmlFile('tests/assets/nopages.yml'); }