/** * @covers \PressBooks\GlobalTypography::updateWebBookStyleSheet */ public function test_updateWebBookStyleSheet() { $this->_book(); $this->gt->updateWebBookStyleSheet(); $file = \Pressbooks\Container::get('Sass')->pathToUserGeneratedCss() . '/style.css'; $this->assertFileExists($file); $this->assertNotEmpty(file_get_contents($file)); }
/** * @covers \Pressbooks\GlobalTypography::updateWebBookStyleSheet */ public function test_updateWebBookStyleSheet() { $this->_book('donham'); // Pick a theme with some built-in $supported_languages $this->gt->updateWebBookStyleSheet(); $file = \Pressbooks\Container::get('Sass')->pathToUserGeneratedCss() . '/style.css'; $this->assertFileExists($file); $this->assertNotEmpty(file_get_contents($file)); }