Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhoelzel committed Apr 24, 2024
1 parent 79f6696 commit 0fbfa16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Functional/Controller/TwigDocControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ public function testFilterComponents(): void
$crawler = $this->client->request(Request::METHOD_GET, '/', ['filterQuery' => 'ButtonSubmit', 'filterType' => 'name']);

$node = $crawler->filter('div.twig-doc-component');
$nodeContent = $node->filter('h3')->getNode(0)->nodeValue;
static::assertResponseIsSuccessful();
static::assertCount(1, $node);
static::assertEquals('Submit Button (tests/TestApp/templates/components/ButtonSubmit.html.twig)', $node->filter('h3')->getNode(0)->nodeValue);
static::assertStringEndsWith('(tests/TestApp/templates/components/ButtonSubmit.html.twig)', $nodeContent);
static::assertStringStartsWith('Submit Button', $nodeContent);
}

public function testInvalidComponentsRoute(): void
Expand Down

0 comments on commit 0fbfa16

Please sign in to comment.