summaryrefslogtreecommitdiff
path: root/tests/app/SurnameTradition/DefaultSurnameTraditionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/app/SurnameTradition/DefaultSurnameTraditionTest.php')
-rw-r--r--tests/app/SurnameTradition/DefaultSurnameTraditionTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/app/SurnameTradition/DefaultSurnameTraditionTest.php b/tests/app/SurnameTradition/DefaultSurnameTraditionTest.php
index 1915c076f4..7ccf2e1189 100644
--- a/tests/app/SurnameTradition/DefaultSurnameTraditionTest.php
+++ b/tests/app/SurnameTradition/DefaultSurnameTraditionTest.php
@@ -44,16 +44,16 @@ class DefaultSurnameTraditionTest extends TestCase
*/
public function testNewChildNames(): void
{
- $father_fact = $this->createStub(Fact::class);
+ $father_fact = $this->createMock(Fact::class);
$father_fact->method('value')->willReturn('Chris /White/');
- $father = $this->createStub(Individual::class);
+ $father = $this->createMock(Individual::class);
$father->method('facts')->willReturn(new Collection([$father]));
- $mother_fact = $this->createStub(Fact::class);
+ $mother_fact = $this->createMock(Fact::class);
$mother_fact->method('value')->willReturn('Chris /White/');
- $mother = $this->createStub(Individual::class);
+ $mother = $this->createMock(Individual::class);
$mother->method('facts')->willReturn(new Collection([$mother_fact]));
self::assertSame(
@@ -77,10 +77,10 @@ class DefaultSurnameTraditionTest extends TestCase
*/
public function testNewParentNames(): void
{
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /White/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(
@@ -104,10 +104,10 @@ class DefaultSurnameTraditionTest extends TestCase
*/
public function testNewSpouseNames(): void
{
- $fact = $this->createStub(Fact::class);
+ $fact = $this->createMock(Fact::class);
$fact->method('value')->willReturn('Chris /White/');
- $individual = $this->createStub(Individual::class);
+ $individual = $this->createMock(Individual::class);
$individual->method('facts')->willReturn(new Collection([$fact]));
self::assertSame(