/** * @covers \PressBooks\GlobalTypography::getThemeFontStacks * * @covers \PressBooks\GlobalTypography::updateGlobalTypographyMixin * @covers \PressBooks\GlobalTypography::_sassify * @covers \PressBooks\GlobalTypography::_getBookLanguage */ public function test_getThemeFontStacks() { $this->_book(); $this->gt->updateGlobalTypographyMixin(); $this->assertNotEmpty($this->gt->getThemeFontStacks('epub')); $this->assertEmpty($this->gt->getThemeFontStacks('garbage')); }
/** * @covers \Pressbooks\GlobalTypography::getThemeFontStacks * * @covers \Pressbooks\GlobalTypography::updateGlobalTypographyMixin * @covers \Pressbooks\GlobalTypography::_sassify * @covers \Pressbooks\GlobalTypography::_getBookLanguage */ public function test_getThemeFontStacks() { $this->_book('donham'); // Pick a theme with some built-in $supported_languages $this->gt->updateGlobalTypographyMixin(); $this->assertNotEmpty($this->gt->getThemeFontStacks('epub')); $this->assertEmpty($this->gt->getThemeFontStacks('garbage')); }