function test_store_success() { $mods = new Mods($this->parent_slug, array('name1' => 'val1-parent', 'name2' => 'val2-parent'), $this->child_slug, array('name1' => 'val1-child', 'name3' => 'val3-child')); Inherit_theme_mods::set_theme_mods_of($this->parent_slug, $mods->assigned()->parent); Inherit_theme_mods::set_theme_mods_of($this->child_slug, $mods->assigned()->child); switch_theme($this->child_slug); $itm = new Inherit_Theme_Mods(); $this->assertTrue($itm->store()); $this->assertArrayDeepEquals($mods->assigned()->child, $mods->actual()->trashed); }