Skip to content

Commit de99908

Browse files
committed
minor #1425 Fixed accessing crawler in test example (althaus)
This PR was merged into the 2.x branch. Discussion ---------- Fixed accessing crawler in test example | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Issues | Fix n/a | License | MIT Hey, I've just copied the test code example and stumbled upon a little type in the code. This PR fixes accessing the crawler through the provided method instead of a non-existing property. Kind regards Matthias Commits ------- c2ac73f Fixed accessing crawler in test example
2 parents e66b0c2 + c2ac73f commit de99908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigComponent/doc/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ You can test how your component is mounted and rendered using the
980980
$this->assertStringContainsString('bar', $rendered);
981981

982982
// use the crawler
983-
$this->assertCount(5, $rendered->crawler->filter('ul li'));
983+
$this->assertCount(5, $rendered->crawler()->filter('ul li'));
984984
}
985985

986986
public function testEmbeddedComponentRenders(): void

0 commit comments

Comments
 (0)