bandwidthThrottle\tokenBucket\storage\PDOStorageTest::testRemoveOneRow PHP Метод

testRemoveOneRow() публичный Метод

Tests remove() removes only one row.
public testRemoveOneRow ( PDO $pdo )
$pdo PDO The PDO.
    public function testRemoveOneRow(\PDO $pdo)
    {
        $storageA = new PDOStorage("A", $pdo);
        $storageA->bootstrap(0);
        $this->storages[] = $storageA;
        $storageB = new PDOStorage("B", $pdo);
        $storageB->bootstrap(0);
        $storageB->remove();
        $this->assertTrue($storageA->isBootstrapped());
        $this->assertFalse($storageB->isBootstrapped());
    }