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

testFind() public method

Tests that a soft deleted entities is not found when calling Table::find()
public testFind ( )
    public function testFind()
    {
        $user = $this->usersTable->get(1);
        $user->deleted = date('Y-m-d H:i:s');
        $this->usersTable->save($user);
        $user = $this->usersTable->find()->where(['id' => 1])->first();
        $this->assertEquals(null, $user);
    }