浏览代码

gitattributes export fix

dereuromark 8 年之前
父节点
当前提交
150573dfdb

+ 8 - 0
.gitattributes

@@ -12,3 +12,11 @@
 *.pdf binary
 *.dll binary
 *.exe binary
+
+# Remove files for archives generated using `git archive`
+phpunit.xml.dist export-ignore
+.travis.yml export-ignore
+.gitignore export-ignore
+.gitattributes export-ignore
+.editorconfig export-ignore
+tests/test_app export-ignore

+ 1 - 1
composer.json

@@ -31,7 +31,7 @@
 		"psr-4": {
 			"Tools\\Test\\": "tests/",
 			"Cake\\Test\\": "vendor/cakephp/cakephp/tests/",
-			"App\\": "tests/TestApp/"
+			"App\\": "tests/test_app/"
 		}
 	},
 	"suggest": {

+ 1 - 1
src/Model/Table/Table.php

@@ -380,7 +380,7 @@ class Table extends ShimTable {
 		}
 		$date = $value->format(FORMAT_DB_DATE);
 
-		if (!empty($options['allowEmpty']) && (empty($date) || $date == DEFAULT_DATE)) {
+		if (!empty($options['allowEmpty']) && empty($date)) {
 			return true;
 		}
 		if (Validation::date($date, $format)) {

+ 1 - 1
src/Utility/Time.php

@@ -1128,7 +1128,7 @@ class Time extends CakeTime {
 	 *
 	 * @param string $searchString to parse
 	 * @param string $fieldName (Model.field)
-	 * @param array $options (see TimeLib::period)
+	 * @param array $options (see Time::period)
 	 * @return string query SQL Query
 	 */
 	public static function periodAsSql($searchString, $fieldName, array $options = []) {

+ 1 - 1
tests/Fixture/TokensFixture.php

@@ -16,7 +16,7 @@ class TokensFixture extends TestFixture {
 	 */
 	public $fields = [
 		'id' => ['type' => 'integer', 'null' => false, 'default' => null, 'length' => 10],
-		'user_id' => ['type' => 'string', 'null' => true, 'length' => 36, 'comment' => ''],
+		'user_id' => ['type' => 'uuid', 'null' => true, 'length' => 36, 'comment' => ''],
 		'type' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 10, 'comment' => 'e.g.:activate,reactivate'],
 		'key' => ['type' => 'string', 'null' => true, 'default' => null, 'length' => 60, 'comment' => ''],
 		'content' => ['type' => 'string', 'null' => true, 'default' => null, 'comment' => 'can transport some information'],

tests/TestApp/Auth/ComplexPasswordHasher.php → tests/test_app/Auth/ComplexPasswordHasher.php


tests/TestApp/Controller/AppController.php → tests/test_app/Controller/AppController.php


tests/TestApp/Controller/CommonComponentTestController.php → tests/test_app/Controller/CommonComponentTestController.php


tests/TestApp/Controller/Component/AppleComponent.php → tests/test_app/Controller/Component/AppleComponent.php


tests/TestApp/Controller/Component/BananaComponent.php → tests/test_app/Controller/Component/BananaComponent.php


tests/TestApp/Controller/Component/TestComponent.php → tests/test_app/Controller/Component/TestComponent.php


tests/TestApp/Controller/MobileComponentTestController.php → tests/test_app/Controller/MobileComponentTestController.php


tests/TestApp/Controller/UrlComponentTestController.php → tests/test_app/Controller/UrlComponentTestController.php


tests/TestApp/Mailer/TestEmail.php → tests/test_app/Mailer/TestEmail.php


tests/TestApp/Model/Entity/BitmaskedComment.php → tests/test_app/Model/Entity/BitmaskedComment.php


tests/TestApp/Model/Entity/SluggedArticle.php → tests/test_app/Model/Entity/SluggedArticle.php


tests/TestApp/Model/Table/AuthorsTable.php → tests/test_app/Model/Table/AuthorsTable.php


tests/TestApp/Model/Table/BitmaskedCommentsTable.php → tests/test_app/Model/Table/BitmaskedCommentsTable.php


tests/TestApp/Model/Table/JsonableCommentsTable.php → tests/test_app/Model/Table/JsonableCommentsTable.php


tests/TestApp/Model/Table/PostsTable.php → tests/test_app/Model/Table/PostsTable.php


tests/TestApp/Model/Table/ResetCommentsTable.php → tests/test_app/Model/Table/ResetCommentsTable.php


tests/TestApp/Model/Table/RolesTable.php → tests/test_app/Model/Table/RolesTable.php


tests/TestApp/Model/Table/ToolsUsersTable.php → tests/test_app/Model/Table/ToolsUsersTable.php


tests/TestApp/View/Helper/TimelineHelper.php → tests/test_app/View/Helper/TimelineHelper.php