public function testOptions() { $registry = new PostTypeRegistry(); $contentType = $this->getMock("Sypress\\ContentType\\ContentTypeInterface"); $expected = []; $this->assertEquals($expected, $registry->options($contentType)); }
/** * Registers a Sypress theme within WordPress * * @param ThemeInterface $theme Theme */ public function register(ThemeInterface $theme) { foreach ($theme->getNavMenus() as $handle => $label) { register_nav_menu($handle, $label); } foreach ($theme->getContentTypes() as $contentType) { $this->postTypeRegistry->register($contentType); } }