tests/unit/Utils/UrlKeyUtilTest.php
/**
     * Test if makeUnique() method returns a key with the counter raisen when a related category
     * with the same path and key exists.
     *
     * @return void
     * @see case-01-04
     */
Test if makeUnique() method returns a key with the counter raisen when a related category
with the same path and key exists.

@return void
@see case-01-04
Test if makeUnique () method returns a key with the counter raisen when a related category with the same path and key exists . @return void @see case - 01 - 04
public function testMakeUniqueWithRaisedCounterWhenARelatedCatgoryWithTheSameKeyAndPathExists() : void
    {
        $mockSubject = $this->getMockSubject(4321);
        $entity = array(MemberNames::ENTITY_ID => 4321);
        $this->assertSame(
            'joust-duffle-bag-3',
            $this->getMockUrlKeyUtil()->makeUnique($mockSubject, $entity, 'joust-duffle-bag', array('gear'))
        );
    }
public function testMakeUniqueWithRaisedCounterWhenARelatedCatgoryWithTheSameKeyAndPathExists ( ) : void { $ mockSubject = $ this -> getMockSubject ( 4321 ) ; $ entity = array ( MemberNames :: ENTITY_ID => 4321 ) ; $ this -> assertSame ( 'joust-duffle-bag-3' , $ this -> getMockUrlKeyUtil ( ) -> makeUnique ( $ mockSubject , $ entity , 'joust-duffle-bag' , array ( 'gear' ) ) ) ; }
Test if makeUnique() method returns a key with the counter raisen when a related category
 with the same path and key exists.
Test if makeUnique () method returns a key with the counter raisen when a related category with the same path and key exists .
// load the mock subject instance // initialize the entity // assert the unique URL key