/** * @group get_settings_cache */ public function test_get_settings_cache__タームが一致しない() { $post_id = $this->factory->post->create(array('post_type' => SCF_Config::NAME, 'post_title' => 'test_settings')); update_post_meta($post_id, SCF_Config::PREFIX . 'taxonomies', array('post_tag')); // キャッシュに保存 $settings = SCF::get_settings(get_term($this->term_id, 'category')); $Setting = SCF::get_settings_cache($post_id, get_term($this->term_id, 'category')); $this->assertNull($Setting); }