Last active
October 6, 2015 15:38
-
-
Save cmcramer/b869e809096fe6a36612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YouTubeEmbedFunctionalTest.php | |
------- | |
class YouTubeEmbedFunctionalTest extends FunctionalTest { | |
/** | |
* @var YouTubeEmbed | |
*/ | |
private $youTubeEmbed; | |
/** | |
* @var String | |
*/ | |
protected static $fixture_file = 'YouTubeEmbedTest.yml'; | |
public function setUp() { | |
parent::setUp(); | |
$this->youTubeEmbed = $this->objFromFixture('YouTubeEmbed', 'embed'); | |
} | |
public function testYouTubeConnect() { | |
//$response = $this->get($this->youTubeEmbed->WatchOnYouTubeUrl()); | |
$response = $this->get('/'); | |
//$response = $this->get('/dev/'); | |
//$response = Director::test('/dev/'); | |
//Debug::show($this->mainSession->lastUrl()); | |
//Debug::show($response); | |
$this->assertEquals(200, $response->getStatusCode()); | |
} | |
} | |
YouTubeEmbed.yml | |
------ | |
YouTubeEmbed: | |
embed: | |
Title: Webcam | |
YouTubeId: ibtdOuukpfc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment