Kraken\_Unit\Channel\ChannelCompositeAwareObjectTest::testApiSetChannel_RemovesChannel_WhenNullPassed PHP Метод

testApiSetChannel_RemovesChannel_WhenNullPassed() публичный Метод

    public function testApiSetChannel_RemovesChannel_WhenNullPassed()
    {
        $object = $this->createChannelCompositeAwareObject();
        $channel = $this->createChannelComposite();
        $object->setChannel($channel);
        $this->assertSame($channel, $this->getProtectedProperty($object, 'channel'));
        $object->setChannel(null);
        $this->assertSame(null, $this->getProtectedProperty($object, 'channel'));
    }