mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
parent
7162438837
commit
0650795d60
9 changed files with 265 additions and 33 deletions
24
tests/Glassboxx/ValueObject/CustomerTest.php
Normal file
24
tests/Glassboxx/ValueObject/CustomerTest.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Opdavies\Glassboxx\Tests\Glassboxx\ValueObject;
|
||||
|
||||
use Opdavies\Glassboxx\Tests\Glassboxx\TestCase;
|
||||
use Opdavies\Glassboxx\ValueObject\Customer;
|
||||
|
||||
final class CustomerTest extends TestCase
|
||||
{
|
||||
public function testCreatingACustomer(): void
|
||||
{
|
||||
$customer = new Customer(
|
||||
'Oliver',
|
||||
'Davies',
|
||||
'oliver@oliverdavies.uk'
|
||||
);
|
||||
|
||||
$this->assertSame('Oliver', $customer->getFirstName());
|
||||
$this->assertSame('Davies', $customer->getLastName());
|
||||
$this->assertSame('oliver@oliverdavies.uk', $customer->getEmailAddress());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue