<?php

namespace CultuurNet\UDB3\Event\Commands;

use CultuurNet\UDB3\ContactPoint;
use CultuurNet\UDB3\Place\Commands\UpdateContactPoint;

class UpdateContactPointTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var UpdateContactPoint
     */
    protected $updateContactPoint;

    public function setUp()
    {
        $this->updateContactPoint = new UpdateContactPoint(
            'id',
            new ContactPoint(
                array('0123456789'),
                array('foo@bar.com'),
                array('http://foo.bar'),
                'type'
            )
        );
    }

    /**
     * @test
     */
    public function it_is_possible_to_instantiate_the_command_with_parameters()
    {
        $expectedUpdateContactPoint = new UpdateContactPoint(
            'id',
            new ContactPoint(
                array('0123456789'),
                array('foo@bar.com'),
                array('http://foo.bar'),
                'type'
            )
        );

        $this->assertEquals($expectedUpdateContactPoint, $this->updateContactPoint);
    }
}

<?php

namespace CultuurNet\UDB3\Event\Commands;

use CultuurNet\UDB3\ContactPoint;

class UpdateContactPointTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var UpdateContactPoint
     */
    protected $updateContactPoint;

    public function setUp()
    {
        $this->updateContactPoint = new UpdateContactPoint(
            'id',
            new ContactPoint(
                array('0123456789'),
                array('foo@bar.com'),
                array('http://foo.bar'),
                'type'
            )
        );
    }

    /**
     * @test
     */
    public function it_is_possible_to_instantiate_the_command_with_parameters()
    {
        $expectedUpdateContactPoint = new UpdateContactPoint(
            'id',
            new ContactPoint(
                array('0123456789'),
                array('foo@bar.com'),
                array('http://foo.bar'),
                'type'
            )
        );

        $this->assertEquals($expectedUpdateContactPoint, $this->updateContactPoint);
    }
}

Test Event UpdateContactPoint instead of Place UpdateContactPoint
III-628: Test Event UpdateContactPoint instead of Place UpdateContactPoint
