public function testShouldFindAllRecordsIfNeededAndOnlyIfNeeded() { $this->Item->includeDeletedRecords(); $this->assertEqual($this->_getIds($this->Item->find('all')), [1, 2, 3]); $this->Item->excludeDeletedRecords(); $this->assertEqual($this->_getIds($this->Item->find('all')), [1, 3]); }