for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <[email protected]>
* (c) Gorka Laucirica <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Spec\Kreta\TaskManager\Domain\Model\Organization;
use Kreta\SharedKernel\Domain\Model\DomainEvent;
use Kreta\TaskManager\Domain\Model\Organization\OrganizationId;
use Kreta\TaskManager\Domain\Model\Organization\OwnerAdded;
use Kreta\TaskManager\Domain\Model\Organization\OwnerId;
use PhpSpec\ObjectBehavior;
class OwnerAddedSpec extends ObjectBehavior
{
function let(OrganizationId $organizationId, OwnerId $ownerId)
$this->beConstructedWith($organizationId, $ownerId);
}
function it_is_initializable()
$this->shouldHaveType(OwnerAdded::class);
$this->shouldImplement(DomainEvent::class);
function it_get_occurred_on()
$this->occurredOn()->shouldReturnAnInstanceOf(\DateTimeInterface::class);
function it_gets_organization_id(OrganizationId $organizationId)
$this->organizationId()->shouldReturn($organizationId);
function it_gets_owner_id(OwnerId $ownerId)
$this->ownerId()->shouldReturn($ownerId);