public static function setUpBeforeClass() { if (file_exists(__DIR__ . "/../.env")) { $dotenv = new Dotenv\Dotenv(__DIR__ . "/../"); $dotenv->load(); } self::$instagram = new \marvinosswald\Instagram\Instagram(['accessToken' => getenv('INSTAGRAM_ACCESS_TOKEN')]); }
} public function test_get_tag() { Tags::vocabulary()->add_term( $this->tag ); // Get tag by text $t = Tags::vocabulary()->get_term( $this->text ); $this->assert_equal( $t->term_display, $this->tag->term_display ); // Get tag by id $t = Tags::vocabulary()->get_term( $t->id ); $this->assert_equal( $t->term_display, $this->tag->term_display ); Tags::vocabulary()->delete_term( $t ); } /* * @todo Implement test_attach_tag_to_post */ public function test_attach_tag_to_post() { } /* * @todo Implement test_detach_tag_from_post */ public function test_detach_tag_from_post() { } } TagTest::run_one( 'TagTest' ); ?>
public static function setUpBeforeClass() { self::$defaultSelfClosingMarker = Tag::$selfClosingMarker; self::$defaultVoidElements = Tag::$voidElements; self::$defaultBooleanAttributes = Tag::$booleanAttributes; }