RedUNIT\Base\Foreignkeys::testIssue171 PHP Method

testIssue171() public method

Issue #171 The index name argument is not unique in processEmbeddedBean etc.
public testIssue171 ( ) : void
return void
    public function testIssue171()
    {
        R::getDatabaseAdapter()->addEventListener('sql_exec', $this);
        $account = R::dispense('account');
        $user = R::dispense('user');
        $player = R::dispense('player');
        $account->ownUser[] = $user;
        R::store($account);
        asrt(strpos(implode(',', $this->queries), 'index_foreignkey_user_account') !== FALSE, TRUE);
        $this->queries = array();
        $account->ownPlayer[] = $player;
        R::store($account);
        asrt(strpos(implode(',', $this->queries), 'index_foreignkey_player_accou') !== FALSE, TRUE);
    }