diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2025-12-21 22:50:38 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2025-12-21 22:54:38 +0000 |
| commit | 96eac16fc8aab503603e8022a5b3984b7db81491 (patch) | |
| tree | 93c9c9d5885437b820ad62c2a9466b7c01c232e5 /tests/app/Elements/XrefLocationTest.php | |
| parent | 33d40303f04401ae7926f2aaf30d97e4f887e484 (diff) | |
| download | webtrees-96eac16fc8aab503603e8022a5b3984b7db81491.tar.gz webtrees-96eac16fc8aab503603e8022a5b3984b7db81491.tar.bz2 webtrees-96eac16fc8aab503603e8022a5b3984b7db81491.zip | |
PHPunit: mock objects have expectations, stubs do not
Diffstat (limited to 'tests/app/Elements/XrefLocationTest.php')
| -rw-r--r-- | tests/app/Elements/XrefLocationTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/app/Elements/XrefLocationTest.php b/tests/app/Elements/XrefLocationTest.php index 56d76f39b1..0c9a5a039e 100644 --- a/tests/app/Elements/XrefLocationTest.php +++ b/tests/app/Elements/XrefLocationTest.php @@ -37,7 +37,7 @@ class XrefLocationTest extends TestCase { $element = new XrefLocation(''); - $tree = $this->createMock(Tree::class); + $tree = $this->createStub(Tree::class); $factory = $this->createMock(LocationFactory::class); @@ -85,7 +85,7 @@ class XrefLocationTest extends TestCase ->method('url') ->willReturn('https://url'); - $tree = $this->createMock(Tree::class); + $tree = $this->createStub(Tree::class); $factory = $this->createMock(LocationFactory::class); @@ -102,7 +102,7 @@ class XrefLocationTest extends TestCase { $element = new XrefLocation(''); - $tree = $this->createMock(Tree::class); + $tree = $this->createStub(Tree::class); self::assertSame('<span class="error">invalid</span>', $element->value('invalid', $tree)); } @@ -111,7 +111,7 @@ class XrefLocationTest extends TestCase { $element = new XrefLocation(''); - $tree = $this->createMock(Tree::class); + $tree = $this->createStub(Tree::class); $factory = $this->createMock(LocationFactory::class); |
