Skip to content

Commit cb88b6c

Browse files
committed
test: Add AVQuery test case
1 parent b488a4f commit cb88b6c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

AVOS/AVOS.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,7 @@
10301030
D3A3028B21C9EC6600A6C09D /* LiveQueryTestViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3A3028A21C9EC6600A6C09D /* LiveQueryTestViewController.swift */; };
10311031
D3C53FCC2106D84A00D48686 /* AVIMClientProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = D3C53FCB2106D84A00D48686 /* AVIMClientProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; };
10321032
D3C53FCD2106D84A00D48686 /* AVIMClientProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = D3C53FCB2106D84A00D48686 /* AVIMClientProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; };
1033+
D3CC5D282252242A00B3C778 /* AVQueryTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3CC5D272252242A00B3C778 /* AVQueryTestCase.swift */; };
10331034
D3CC90CB2069E5BB0082EFD4 /* AVObjectTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3CC90CA2069E5BB0082EFD4 /* AVObjectTestCase.swift */; };
10341035
D3CDF4EB1FE8F3810033153E /* LCIMTestBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3CDF4EA1FE8F3810033153E /* LCIMTestBase.swift */; };
10351036
D3D80081210AFC7F0058F86C /* AVIMCommon_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = D3D80080210AFC7F0058F86C /* AVIMCommon_Internal.h */; };
@@ -1474,6 +1475,7 @@
14741475
D3A3028821C9EC5300A6C09D /* IMTestViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IMTestViewController.swift; sourceTree = "<group>"; };
14751476
D3A3028A21C9EC6600A6C09D /* LiveQueryTestViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LiveQueryTestViewController.swift; sourceTree = "<group>"; };
14761477
D3C53FCB2106D84A00D48686 /* AVIMClientProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AVIMClientProtocol.h; sourceTree = "<group>"; };
1478+
D3CC5D272252242A00B3C778 /* AVQueryTestCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AVQueryTestCase.swift; sourceTree = "<group>"; };
14771479
D3CC90CA2069E5BB0082EFD4 /* AVObjectTestCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AVObjectTestCase.swift; sourceTree = "<group>"; };
14781480
D3CDF4EA1FE8F3810033153E /* LCIMTestBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LCIMTestBase.swift; sourceTree = "<group>"; };
14791481
D3D80080210AFC7F0058F86C /* AVIMCommon_Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AVIMCommon_Internal.h; sourceTree = "<group>"; };
@@ -2346,6 +2348,7 @@
23462348
D3472E1E2015CBC200AAD65F /* AVFileTestCase.swift */,
23472349
D305470E208F2F7200B547B9 /* AVCloudTestCase.swift */,
23482350
D336C56F212D02A2008D0E3E /* LCRouterTestCase.swift */,
2351+
D3CC5D272252242A00B3C778 /* AVQueryTestCase.swift */,
23492352
);
23502353
path = Swift;
23512354
sourceTree = "<group>";
@@ -3902,6 +3905,7 @@
39023905
buildActionMask = 2147483647;
39033906
files = (
39043907
D305470F208F2F7200B547B9 /* AVCloudTestCase.swift in Sources */,
3908+
D3CC5D282252242A00B3C778 /* AVQueryTestCase.swift in Sources */,
39053909
D30DF3F71FDE2CD200F932BC /* AVUserTestCase.swift in Sources */,
39063910
D30DF4161FDE38EF00F932BC /* LCTestBase.swift in Sources */,
39073911
D336C570212D02A2008D0E3E /* LCRouterTestCase.swift in Sources */,
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// AVQueryTestCase.swift
3+
// AVOSCloud-iOSTests
4+
//
5+
// Created by zapcannon87 on 2019/4/1.
6+
// Copyright © 2019 LeanCloud Inc. All rights reserved.
7+
//
8+
9+
import XCTest
10+
11+
class AVQueryTestCase: LCTestBase {
12+
13+
func testQuery() {
14+
let query = AVQuery(className: "TestObject")
15+
16+
XCTAssertNotNil(query.findObjects())
17+
}
18+
19+
}

0 commit comments

Comments
 (0)