Skip to content

Commit

Permalink
OEL-2115: Replace property_exists with attr().
Browse files Browse the repository at this point in the history
  • Loading branch information
drishu committed Apr 21, 2023
1 parent 1bd8246 commit b207cc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/Functional/ContentEventRenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ public function testEventPage(): void {
$this->drupalGet('node/' . $node->id());
$crawler = $client->getCrawler();

/** @var \Symfony\Component\DomCrawler\Crawler $link */
$link = $crawler->filter('.bcl-content-banner a[href="/build/node/' . $node->id() . '"]');
$this->assertCount(1, $link);
$this->assertFalse(property_exists($link, 'target'));
$this->assertNull($link->attr('target'));
$this->assertStringContainsString('Register', $link->text());
$this->assertStringContainsString('calendar-check', $link->html());

Expand Down

0 comments on commit b207cc6

Please sign in to comment.