Skip to content

Commit

Permalink
Merge c461afc into ea549a6
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleMinotto committed Sep 13, 2015
2 parents ea549a6 + c461afc commit bc63918
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Tests/EmbedlyServiceProviderTest.php
Expand Up @@ -60,9 +60,9 @@ public function testMissingTwigExtension()
{
$app = new Application();
$app->register(new TwigServiceProvider());
$app->register(new EmbedlyServiceProvider(), array(
$app->register(new EmbedlyServiceProvider(), [
'embedly.twig' => false,
));
]);
$app->boot();

$this->assertFalse($app['twig']->hasExtension('emanueleminotto_embedly_twigextension'));
Expand Down Expand Up @@ -120,9 +120,9 @@ public function testRequestType()
private function createTestRequestResponse()
{
$app = new Application();
$app->register(new EmbedlyServiceProvider(), array(
$app->register(new EmbedlyServiceProvider(), [
'embedly.api_key' => $_ENV['api_key'],
));
]);

$app->get('/', function () use ($app) {
$data = $app['embedly']->oembed([
Expand All @@ -132,7 +132,6 @@ private function createTestRequestResponse()
return $app->json($data);
});


$request = Request::create('/');
$response = $app->handle($request);

Expand Down

0 comments on commit bc63918

Please sign in to comment.