diff options
Diffstat (limited to 'tests/app/SurnameTradition/PaternalSurnameTraditionTest.php')
| -rw-r--r-- | tests/app/SurnameTradition/PaternalSurnameTraditionTest.php | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php b/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php index 7e4949dd37..ea5415c969 100644 --- a/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php +++ b/tests/app/SurnameTradition/PaternalSurnameTraditionTest.php @@ -44,16 +44,16 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewChildNames(): void { - $father_fact = $this->createStub(Fact::class); + $father_fact = $this->createMock(Fact::class); $father_fact->method('value')->willReturn('John /White/'); - $father = $this->createStub(Individual::class); + $father = $this->createMock(Individual::class); $father->method('facts')->willReturn(new Collection([$father_fact])); - $mother_fact = $this->createStub(Fact::class); + $mother_fact = $this->createMock(Fact::class); $mother_fact->method('value')->willReturn('Mary /Black/'); - $mother = $this->createStub(Individual::class); + $mother = $this->createMock(Individual::class); $mother->method('facts')->willReturn(new Collection([$mother_fact])); self::assertSame( @@ -77,16 +77,16 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewChildNamesWithSpfx(): void { - $father_fact = $this->createStub(Fact::class); + $father_fact = $this->createMock(Fact::class); $father_fact->method('value')->willReturn('John /de White/'); - $father = $this->createStub(Individual::class); + $father = $this->createMock(Individual::class); $father->method('facts')->willReturn(new Collection([$father_fact])); - $mother_fact = $this->createStub(Fact::class); + $mother_fact = $this->createMock(Fact::class); $mother_fact->method('value')->willReturn('Mary /van Black/'); - $mother = $this->createStub(Individual::class); + $mother = $this->createMock(Individual::class); $mother->method('facts')->willReturn(new Collection([$mother_fact])); self::assertSame( @@ -100,16 +100,16 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewChildNamesWithMultipleSpfx(): void { - $father_fact = $this->createStub(Fact::class); + $father_fact = $this->createMock(Fact::class); $father_fact->method('value')->willReturn('John /van der White/'); - $father = $this->createStub(Individual::class); + $father = $this->createMock(Individual::class); $father->method('facts')->willReturn(new Collection([$father_fact])); - $mother_fact = $this->createStub(Fact::class); + $mother_fact = $this->createMock(Fact::class); $mother_fact->method('value')->willReturn('Mary /van Black/'); - $mother = $this->createStub(Individual::class); + $mother = $this->createMock(Individual::class); $mother->method('facts')->willReturn(new Collection([$mother_fact])); self::assertSame( @@ -123,16 +123,16 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewChildNamesWithDutchSpfx(): void { - $father_fact = $this->createStub(Fact::class); + $father_fact = $this->createMock(Fact::class); $father_fact->method('value')->willReturn('John /\'t White/'); - $father = $this->createStub(Individual::class); + $father = $this->createMock(Individual::class); $father->method('facts')->willReturn(new Collection([$father_fact])); - $mother_fact = $this->createStub(Fact::class); + $mother_fact = $this->createMock(Fact::class); $mother_fact->method('value')->willReturn('Mary /van Black/'); - $mother = $this->createStub(Individual::class); + $mother = $this->createMock(Individual::class); $mother->method('facts')->willReturn(new Collection([$mother_fact])); self::assertSame( @@ -146,16 +146,16 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewChildNamesWithMultipleDutchSpfx(): void { - $father_fact = $this->createStub(Fact::class); + $father_fact = $this->createMock(Fact::class); $father_fact->method('value')->willReturn('John /van \'t White/'); - $father = $this->createStub(Individual::class); + $father = $this->createMock(Individual::class); $father->method('facts')->willReturn(new Collection([$father_fact])); - $mother_fact = $this->createStub(Fact::class); + $mother_fact = $this->createMock(Fact::class); $mother_fact->method('value')->willReturn('Mary /van Black/'); - $mother = $this->createStub(Individual::class); + $mother = $this->createMock(Individual::class); $mother->method('facts')->willReturn(new Collection([$mother_fact])); self::assertSame( @@ -169,10 +169,10 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewFatherNames(): 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( @@ -186,10 +186,10 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewMotherNames(): 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( @@ -203,10 +203,10 @@ class PaternalSurnameTraditionTest 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( @@ -220,10 +220,10 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewHusbandNames(): 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( @@ -237,10 +237,10 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewWifeNames(): 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( @@ -254,10 +254,10 @@ class PaternalSurnameTraditionTest extends TestCase */ public function testNewWifeNamesWithSpfx(): void { - $fact = $this->createStub(Fact::class); + $fact = $this->createMock(Fact::class); $fact->method('value')->willReturn('Chris /van der White/'); - $individual = $this->createStub(Individual::class); + $individual = $this->createMock(Individual::class); $individual->method('facts')->willReturn(new Collection([$fact])); self::assertSame( @@ -271,10 +271,10 @@ class PaternalSurnameTraditionTest 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( |
