/** * Test track full url option * * @covers Yoast_GA_Admin->get_track_full_url() */ public function test_get_track_full_url() { $track_options = $this->class_instance->get_track_full_url(); $track_options_result = is_array($track_options); if ($track_options) { foreach ($track_options as $values) { $this->assertArrayHasKey('id', $values); $this->assertArrayHasKey('name', $values); if (isset($values['name'])) { $this->assertNotEmpty($values['name']); } } } else { $this->assertTrue($track_options_result); } }