From b00271ad80ae8a7060efa59de876a43d69120c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 4 May 2019 21:45:29 +0200 Subject: [PATCH] AssociationHasManyPrefetchingSQLTests cleanup --- ...ssociationHasManyPrefetchingSQLTests.swift | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Tests/GRDBTests/AssociationHasManyPrefetchingSQLTests.swift b/Tests/GRDBTests/AssociationHasManyPrefetchingSQLTests.swift index d12627a5e..f96980b13 100644 --- a/Tests/GRDBTests/AssociationHasManyPrefetchingSQLTests.swift +++ b/Tests/GRDBTests/AssociationHasManyPrefetchingSQLTests.swift @@ -79,7 +79,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { } } - func testHasMany() throws { + func testIncludingAllHasMany() throws { let dbQueue = try makeDatabaseQueue() try dbQueue.read { db in do { @@ -162,7 +162,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { } } - func testHasManyHasMany() throws { + func testIncludingAllHasManyIncludingAllHasMany() throws { let dbQueue = try makeDatabaseQueue() try dbQueue.read { db in do { @@ -308,7 +308,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { } } - func testHasManyHasOne() throws { + func testIncludingAllHasManyIncludingRequiredHasMany() throws { let dbQueue = try makeDatabaseQueue() try dbQueue.read { db in do { @@ -316,7 +316,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { .including(all: A .hasMany(C.self) .including(required: C - .hasOne(D.self) + .hasMany(D.self) .orderByPrimaryKey()) .orderByPrimaryKey()) .orderByPrimaryKey() @@ -343,7 +343,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { .hasMany(C.self) .filter(false) .including(required: C - .hasOne(D.self) + .hasMany(D.self) .orderByPrimaryKey()) .orderByPrimaryKey()) .orderByPrimaryKey() @@ -371,12 +371,12 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { .hasMany(C.self) .filter(Column("colc1") > 7) .including(required: C - .hasOne(D.self) + .hasMany(D.self) .filter(Column("cold1") == 11) .orderByPrimaryKey() .forKey("d1")) .including(required: C - .hasOne(D.self) + .hasMany(D.self) .filter(Column("cold1") != 11) .orderByPrimaryKey() .forKey("d2")) @@ -386,12 +386,12 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { .hasMany(C.self) .filter(Column("colc1") < 9) .including(required: C - .hasOne(D.self) + .hasMany(D.self) .filter(Column("cold1") == 11) .orderByPrimaryKey() .forKey("d1")) .including(required: C - .hasOne(D.self) + .hasMany(D.self) .filter(Column("cold1") != 11) .orderByPrimaryKey() .forKey("d2")) @@ -430,7 +430,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { } } - func testHasManyThrough() throws { + func testIncludingAllHasManyThrough() throws { let dbQueue = try makeDatabaseQueue() try dbQueue.read { db in do { @@ -508,7 +508,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { } } - func testHasManyMergedWithHasManyThrough() throws { + func testIncludingAllHasManyThroughMergedWithHasMany() throws { let dbQueue = try makeDatabaseQueue() try dbQueue.read { db in do { @@ -606,7 +606,7 @@ class AssociationHasManyPrefetchingSQLTests: GRDBTestCase { } } - func testBelongsToHasMany() throws { + func testIncludingOptionalBelongsToIncludingAllHasMany() throws { let dbQueue = try makeDatabaseQueue() try dbQueue.write { db in do {