mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 06:57:25 +02:00
Init RTD v2 config
This commit is contained in:
@@ -62,5 +62,5 @@ Tests/DataMapperTest.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/main/Structural/DataMapper
|
||||
.. _`GitHub`: https://github.com/DesignPatternsPHP/DesignPatternsPHP/tree/main/Structural/DataMapper
|
||||
.. __: http://en.wikipedia.org/wiki/Data_mapper_pattern
|
||||
|
@@ -14,7 +14,7 @@ class DataMapperTest extends TestCase
|
||||
{
|
||||
public function testCanMapUserFromStorage()
|
||||
{
|
||||
$storage = new StorageAdapter([1 => ['username' => 'domnikl', 'email' => 'liebler.dominik@gmail.com']]);
|
||||
$storage = new StorageAdapter([1 => ['username' => 'someone', 'email' => 'someone@example.com']]);
|
||||
$mapper = new UserMapper($storage);
|
||||
|
||||
$user = $mapper->findById(1);
|
||||
|
Reference in New Issue
Block a user