assertRemoveToken example

$storage->expects($this->once())
            ->method('getToken')
            ->with('https-token_id')
            ->willReturn('def');

        $this->assertFalse($manager->isTokenValid(new CsrfToken('token_id', 'abc..ghi')));
    }

    public function testRemoveTokenEmptyNamespace()
    {
        $this->assertRemoveToken(...$this->getEmptyNamespaceMocks());
    }

    public function testRemoveTokenHttpsNamespace()
    {
        $this->assertRemoveToken(...$this->getHttpsNamespaceMocks());
    }

    public function testRemoveTokenCustomNamespace()
    {
        $this->assertRemoveToken(...$this->getCustomNamespaceMocks());
    }

    
Home | Imprint | This part of the site doesn't use cookies.