Skip to content

Commit 2cbb8cb

Browse files
authored
Merge pull request #969 from cakephp/5.x-merge
merge 4.x => 5.x
2 parents facf109 + 3f525b2 commit 2cbb8cb

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ working correctly. Some common problems are:
4545
2. Your hostname needs to be added to the `DebugKit.safeTld`. If your local
4646
domain isn't a known development environment name, DebugKit will disable
4747
itself to protect a potentially non-development environment.
48+
3. If you are using the [Authorization Plugin](https://github.com/cakephp/authorization)
49+
you need to set `DebugKit.ignoreAuthorization` to `true` in your config.
4850

4951
## Reporting Issues
5052

tests/TestCase/DebugSqlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ public function testSqlPlain()
131131
/**
132132
* Creates a Query object for testing.
133133
*
134-
* @return \Cake\ORM\Query
134+
* @return \Cake\ORM\Query\SelectQuery
135135
*/
136136
private function newQuery()
137137
{
138-
return $this->fetchTable('panels')->query();
138+
return $this->fetchTable('panels')->selectQuery();
139139
}
140140
}

tests/TestCase/Panel/VariablesPanelTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ public function testShutdown()
6464
$requests = $this->getTableLocator()->get('Requests');
6565
$query = $requests->find('all');
6666
$result = $requests->find()->all();
67-
$unbufferedQuery = $requests->find('all');
68-
$unbufferedQuery->toArray(); //toArray call would normally happen somewhere in View, usually implicitly
6967
$update = $requests->updateQuery();
70-
$debugInfoException = $requests->query()->contain('NonExistentAssociation');
68+
$debugInfoException = $requests->selectQuery()->contain('NonExistentAssociation');
7169

7270
$unserializable = new stdClass();
7371
$unserializable->pdo = new PDO('sqlite::memory:');
@@ -91,7 +89,6 @@ public function testShutdown()
9189
'debugInfoException' => $debugInfoException,
9290
'updateQuery' => $update,
9391
'query' => $query,
94-
'unbufferedQuery' => $unbufferedQuery,
9592
'result set' => $result,
9693
'string' => 'yes',
9794
'array' => ['some' => 'key'],

0 commit comments

Comments
 (0)