tests/unit/Utils/UrlKeyUtilTest.php
/**
     * Test if makeUnique() method returns the same key, multipath and store but a different entity.
     *
     * This can happen, when someone tries to create a category with the same URL path/key as an
     * already exisiting category/product URL rewrite has.
     *
     * @return void
     * @see case-01-06
     */
Test if makeUnique() method returns the same key, multipath and store but a different entity.
This can happen, when someone tries to create a category with the same URL path/key as an
already exisiting category/product URL rewrite has.

@return void
@see case-01-06
Test if makeUnique () method returns the same key multipath and store but a different entity . This can happen when someone tries to create a category with the same URL path / key as an already exisiting category / product URL rewrite has . @return void @see case - 01 - 06
public function testMakeUniqueWithSameKeyAndMultipathAndStoreButDifferentEntity() : void
    {
        $mockSubject = $this->getMockSubject(5432, 1);
        $entity = array(MemberNames::ENTITY_ID => 5432);
        $this->assertSame(
            'joust-duffle-bag-1',
            $this->getMockUrlKeyUtil()->makeUnique($mockSubject, $entity, 'joust-duffle-bag', array('gear/bags'))
        );
    }
public function testMakeUniqueWithSameKeyAndMultipathAndStoreButDifferentEntity ( ) : void { $ mockSubject = $ this -> getMockSubject ( 5432 , 1 ) ; $ entity = array ( MemberNames :: ENTITY_ID => 5432 ) ; $ this -> assertSame ( 'joust-duffle-bag-1' , $ this -> getMockUrlKeyUtil ( ) -> makeUnique ( $ mockSubject , $ entity , 'joust-duffle-bag' , array ( 'gear/bags' ) ) ) ; }
Test if makeUnique() method returns the same key, multipath and store but a different entity.
Test if makeUnique () method returns the same key multipath and store but a different entity .
// load the mock subject instance // initialize the entity // assert the unique URL key