Neos\Flow\Tests\Unit\ObjectManagement\Configuration\ConfigurationTest::passingAnEmptyArrayToSetPropertiesRemovesAllExistingproperties PHP Method

passingAnEmptyArrayToSetPropertiesRemovesAllExistingproperties() public method

    public function passingAnEmptyArrayToSetPropertiesRemovesAllExistingproperties()
    {
        $someProperties = ['prop1' => new Configuration\ConfigurationProperty('prop1', 'simple string'), 'prop2' => new Configuration\ConfigurationProperty('prop2', 'another string')];
        $this->objectConfiguration->setProperties($someProperties);
        $this->assertEquals($someProperties, $this->objectConfiguration->getProperties(), 'The set properties could not be retrieved again.');
        $this->objectConfiguration->setProperties([]);
        $this->assertEquals([], $this->objectConfiguration->getProperties(), 'The properties have not been cleared.');
    }