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

testDeleteAll() public method

Tests that Table::deleteAll() does not hard delete
public testDeleteAll ( )
    public function testDeleteAll()
    {
        $this->usersTable->deleteAll([]);
        $this->assertEquals(0, $this->usersTable->find()->count());
        $this->assertNotEquals(0, $this->usersTable->find('all', ['withDeleted'])->count());
        $this->postsTable->deleteAll([]);
        $this->assertEquals(0, $this->postsTable->find()->count());
        $this->assertNotEquals(0, $this->postsTable->find('all', ['withDeleted'])->count());
    }