tests/unit/Utils/UrlKeyUtilTest.php
/**
     * Test if makeUnique() method returns the same key if the category exits and already has the same key.
     *
     * @return void
     * @see case-04-02
     */
Test if makeUnique() method returns the same key if the category exits and already has the same key.
@return void
@see case-04-02
Test if makeUnique () method returns the same key if the category exits and already has the same key . @return void @see case - 04 - 02
public function testMakeUniqueWithSameKeyAndMultipathAndStoreAndEntity() : void
    {
        $mockSubject = $this->getMockSubject(1237);
        $entity = array(MemberNames::ENTITY_ID => 1237);
        $this->assertSame(
            'duffle-bags',
            $this->getMockUrlKeyUtil()->makeUnique($mockSubject, $entity, 'duffle-bags', array('gear/bags'))
        );
    }
public function testMakeUniqueWithSameKeyAndMultipathAndStoreAndEntity ( ) : void { $ mockSubject = $ this -> getMockSubject ( 1237 ) ; $ entity = array ( MemberNames :: ENTITY_ID => 1237 ) ; $ this -> assertSame ( 'duffle-bags' , $ this -> getMockUrlKeyUtil ( ) -> makeUnique ( $ mockSubject , $ entity , 'duffle-bags' , array ( 'gear/bags' ) ) ) ; }
Test if makeUnique() method returns the same key if the category exits and already has the same key.
Test if makeUnique () method returns the same key if the category exits and already has the same key .
// load the mock subject instance // initialize the entity // assert the unique URL key