Browse Source

Fix failing test.

ADmad 11 years ago
parent
commit
0dc7389231
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/bake_compare/Controller/Actions.ctp

+ 1 - 1
tests/bake_compare/Controller/Actions.ctp

@@ -79,7 +79,7 @@
  */
 	public function delete($id = null) {
 		$bakeArticle = $this->BakeArticles->get($id);
-		$this->request->allowMethod('post', 'delete');
+		$this->request->allowMethod(['post', 'delete']);
 		if ($this->BakeArticles->delete($bakeArticle)) {
 			$this->Flash->success('The bake article has been deleted.');
 		} else {