public function testBookWithNoConfigFile() { $app = new Application(); $app['publishing.dir.book'] = uniqid('this-path-does-not-exist'); $app['publishing.book.slug'] = 'book_with_no_config_file'; try { $app->loadBookConfiguration(); } catch (\RuntimeException $e) { $this->assertInstanceOf('\\RuntimeException', $e); $this->assertContains("There is no 'config.yml' configuration file", $e->getMessage()); } }