SoftDelete\Test\TestCase\Model\Table\SoftDeleteBehaviorTest::testHardDelete PHP Method

testHardDelete() public method

public testHardDelete ( )
    public function testHardDelete()
    {
        $user = $this->usersTable->get(1);
        $this->usersTable->hardDelete($user);
        $user = $this->usersTable->findById(1)->first();
        $this->assertEquals(null, $user);
        $user = $this->usersTable->find('all', ['withDeleted'])->where(['id' => 1])->first();
        $this->assertEquals(null, $user);
    }