Skip to content

Commit 6fcf5c7

Browse files
author
Dominik Jansen
committed
test: fix environment variables
1 parent e43e741 commit 6fcf5c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PagesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testArchiveOrg()
9090

9191
public function testInstagram()
9292
{
93-
if ($_ENV['INSTAGRAM_TOKEN'] ?? false) {
93+
if (getenv('INSTAGRAM_TOKEN') ?? false) {
9494
$this->assertEmbed('http://instagram.com/p/ySl7G9tO_q/');
9595
} else {
9696
self::markTestSkipped('Environment variable `INSTAGRAM_TOKEN` must be provided to test instagram. See https://developers.facebook.com/docs/instagram/oembed/');
@@ -130,7 +130,7 @@ public function testFlickr()
130130

131131
public function testFacebook()
132132
{
133-
if ($_ENV['FACEBOOK_TOKEN'] ?? false) {
133+
if (getenv('FACEBOOK_TOKEN') ?? false) {
134134
$this->assertEmbed('https://www.facebook.com/permalink.php?story_fbid=827163017327807&id=149460691764713');
135135
$this->assertEmbed('https://www.facebook.com/acolono/videos/10154107990797381/');
136136
} else {

0 commit comments

Comments
 (0)