mscherer 5 年 前
コミット
fbe3882040
2 ファイル変更2 行追加3 行削除
  1. 0 1
      src/Mailer/Mailer.php
  2. 2 2
      tests/TestCase/Model/Table/TableTest.php

+ 0 - 1
src/Mailer/Mailer.php

@@ -5,7 +5,6 @@ namespace Tools\Mailer;
 use Cake\Core\Configure;
 use Cake\I18n\I18n;
 use Cake\Mailer\Mailer as CakeMailer;
-use RuntimeException;
 
 /**
  * Allows locale overwrite to send emails in a specific language

+ 2 - 2
tests/TestCase/Model/Table/TableTest.php

@@ -161,14 +161,14 @@ class TableTest extends TestCase {
 	public function testGetFieldInUse() {
 		$config = $this->Posts->getConnection()->config();
 		$isPostgres = strpos($config['driver'], 'Postgres') !== false;
-		$this->skipIf($isPostgres, 'Only for MySQL right now');
+		$isMysql = strpos($config['driver'], 'Mysql') !== false;
+		$this->skipIf($isPostgres || $isMysql, 'Only for MySQL with ONLY_FULL_GROUP_BY disabled right now');
 
 		$results = $this->Posts->getFieldInUse('author_id', 'list')->toArray();
 		/*
 		$expected = [2 => 'Second Post', 3 => 'Third Post'];
 		$this->assertEquals($expected, $results);
 		*/
-		dd($results);
 		$this->assertCount(2, $results);
 
 		$results = $this->Posts->getFieldInUse('author_id')->toArray();