Skip to content

Commit

Permalink
reinstated test_get_store test
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Jul 15, 2022
1 parent 5bb500e commit 774399d
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ public function test_create_new_store() {
/**
* Should return previously created store when the same selector key is passed.
*/
// public function test_get_store() {
// $new_pancakes_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'pancakes-with-strawberries' );
// $selector = '.cream';
// $pancake_declarations = array(
// 'color' => 'white',
// );
// $new_pancakes_store->set_rule( $selector, $pancake_declarations );
// $the_same_pancakes_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'pancakes-with-strawberries' );
// $this->assertEquals( $pancake_declarations, $the_same_pancakes_store->get_rule( $selector )->get_declarations_array() );
// }
public function test_get_store() {
$new_fish_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'fish-n-chips' );
$selector = '.haddock';

$new_fish_store->get_rule( $selector )->get_selector();
$this->assertEquals( $selector, $new_fish_store->get_rule( $selector )->get_selector() );

$the_same_fish_store = WP_Style_Engine_CSS_Rules_Store::get_store( 'fish-n-chips' );
$this->assertEquals( $selector, $the_same_fish_store->get_rule( $selector )->get_selector() );
}

/**
* Should return a stored rule.
Expand Down

0 comments on commit 774399d

Please sign in to comment.