function test_filter_cached_one_link_country_specific_behavior_same_as_default() { update_option('amber_options', array('amber_available_action' => AMBER_ACTION_HOVER, 'amber_country_available_action' => AMBER_ACTION_HOVER, 'amber_country_id' => 'IR')); $this->status_stub->method('get_summary')->willReturn(array('default' => array('date' => '1395590225', 'location' => 'Amber/cache/0a137b375cc3881a70e186ce2172c8d1', 'status' => 1, 'size' => 3453))); $result = Amber::filter('The quick brown <a href="http://fox.com">fox</a> jumped over the lazy dog'); $this->assertEquals('The quick brown <a href="http://fox.com" data-versionurl="http://example.org/Amber/cache/0a137b375cc3881a70e186ce2172c8d1" data-versiondate="2014-03-23T15:57:05+00:00" data-amber-behavior="up hover:2">fox</a> jumped over the lazy dog', $result); }