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

testHardDeleteWithCustomField() public method

With a custom soft delete field ensure that a soft deleted record can still be permanently removed.
    public function testHardDeleteWithCustomField()
    {
        $tag = $this->tagsTable->find('all', ['withDeleted'])->where(['id' => 2])->first();
        $this->tagsTable->hardDelete($tag);
        $tag = $this->tagsTable->find('all', ['withDeleted'])->where(['id' => 2])->first();
        $this->assertEquals(null, $tag);
    }