tests/unit/Utils/UrlKeyUtilTest.php
/**
     * Test if makeUnique() method returns the same key and entity but another store.
     *
     * @return void
     * @see case-01-02
     */
Test if makeUnique() method returns the same key and entity but another store.
@return void
@see case-01-02
Test if makeUnique () method returns the same key and entity but another store . @return void @see case - 01 - 02
public function testMakeUniqueWithSameKeyAndEntityAndAnotherStore() : void
    {
        $mockSubject = $this->getMockSubject(1234, 1);
        $entity = array(MemberNames::ENTITY_ID => 1234);
        $this->assertSame(
            'joust-duffle-bag',
            $this->getMockUrlKeyUtil()->makeUnique($mockSubject, $entity, 'joust-duffle-bag')
        );
    }
public function testMakeUniqueWithSameKeyAndEntityAndAnotherStore ( ) : void { $ mockSubject = $ this -> getMockSubject ( 1234 , 1 ) ; $ entity = array ( MemberNames :: ENTITY_ID => 1234 ) ; $ this -> assertSame ( 'joust-duffle-bag' , $ this -> getMockUrlKeyUtil ( ) -> makeUnique ( $ mockSubject , $ entity , 'joust-duffle-bag' ) ) ; }
Test if makeUnique() method returns the same key and entity but another store.
Test if makeUnique () method returns the same key and entity but another store .
// load the mock subject instance // initialize the entity // assert the unique URL key