/** * @covers Yoast_GA_Frontend->make_full_url() */ public function test_make_full_url() { // Case 1 $link = array('type' => 'download', 'protocol' => 'https', 'original_url' => 'yoast.com'); $this->assertEquals($this->class_instance->make_full_url($link), 'https://yoast.com'); // Case 2 $link = array('type' => 'internal', 'protocol' => 'http', 'original_url' => 'yoast.com'); $this->assertEquals($this->class_instance->make_full_url($link), 'http://yoast.com'); // Case 3 $link = array('type' => 'email', 'protocol' => 'mailto', 'original_url' => '*****@*****.**'); $this->assertEquals($this->class_instance->make_full_url($link), 'mailto:peter@yoast.com'); }