tests/unit/Utils/UrlKeyUtilTest.php
/**
     * Test if makeUnique() method returns the same key because it has not been used yet.
     *
     * @return void
     * @see case-01-01
     */
Test if makeUnique() method returns the same key because it has not been used yet.
@return void
@see case-01-01
Test if makeUnique () method returns the same key because it has not been used yet . @return void @see case - 01 - 01
public function testMakeUniqueWithNewKey() : void
    {
        $mockSubject = $this->getMockSubject();
        $entity = array(MemberNames::ENTITY_ID => 1234);
        $this->assertSame(
            'unknown-key',
            $this->getMockUrlKeyUtil()->makeUnique($mockSubject, $entity, 'unknown-key')
        );
    }
public function testMakeUniqueWithNewKey ( ) : void { $ mockSubject = $ this -> getMockSubject ( ) ; $ entity = array ( MemberNames :: ENTITY_ID => 1234 ) ; $ this -> assertSame ( 'unknown-key' , $ this -> getMockUrlKeyUtil ( ) -> makeUnique ( $ mockSubject , $ entity , 'unknown-key' ) ) ; }
Test if makeUnique() method returns the same key because it has not been used yet.
Test if makeUnique () method returns the same key because it has not been used yet .
// load the mock subject instance // initialize the entity // assert the unique URL key