Skip to content

Commit d14a059

Browse files
committed
Add true assertion to tests that test not throw
1 parent 8119974 commit d14a059

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/Authentication/AccessTokenMetadataTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public function testAnExpectedAppIdWillNotThrow()
9494
{
9595
$metadata = new AccessTokenMetadata($this->graphResponseData);
9696
$metadata->validateAppId('123');
97+
98+
$this->assertTrue(true);
9799
}
98100

99101
/**
@@ -103,12 +105,16 @@ public function testAnUnexpectedAppIdWillThrow()
103105
{
104106
$metadata = new AccessTokenMetadata($this->graphResponseData);
105107
$metadata->validateAppId('foo');
108+
109+
$this->assertTrue(true);
106110
}
107111

108112
public function testAnExpectedUserIdWillNotThrow()
109113
{
110114
$metadata = new AccessTokenMetadata($this->graphResponseData);
111115
$metadata->validateUserId('1337');
116+
117+
$this->assertTrue(true);
112118
}
113119

114120
/**
@@ -125,6 +131,8 @@ public function testAnActiveAccessTokenWillNotThrow()
125131
$this->graphResponseData['data']['expires_at'] = time() + 1000;
126132
$metadata = new AccessTokenMetadata($this->graphResponseData);
127133
$metadata->validateExpiration();
134+
135+
$this->assertTrue(true);
128136
}
129137

130138
/**

tests/FacebookBatchRequestTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ public function testLessOrEqualThanFiftyRequestsWillNotThrow()
197197
$this->createAndAppendRequestsTo($batchRequest, 50);
198198

199199
$batchRequest->validateBatchRequestCount();
200+
201+
$this->assertTrue(true);
200202
}
201203

202204
/**

tests/GraphNodes/GraphNodeFactoryTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public function testAValidGraphNodeResponseWillNotThrow()
6262

6363
$factory = new GraphNodeFactory($res);
6464
$factory->validateResponseCastableAsGraphNode();
65+
66+
$this->assertTrue(true);
6567
}
6668

6769
/**
@@ -83,6 +85,8 @@ public function testAValidGraphEdgeResponseWillNotThrow()
8385

8486
$factory = new GraphNodeFactory($res);
8587
$factory->validateResponseCastableAsGraphEdge();
88+
89+
$this->assertTrue(true);
8690
}
8791

8892
/**
@@ -121,6 +125,8 @@ public function testValidSubClassesWillNotThrow()
121125
GraphNodeFactory::validateSubclass(GraphNode::class);
122126
GraphNodeFactory::validateSubclass(GraphAlbum::class);
123127
GraphNodeFactory::validateSubclass(MyFooGraphNode::class);
128+
129+
$this->assertTrue(true);
124130
}
125131

126132
public function testCastingAsASubClassObjectWillInstantiateTheSubClass()

0 commit comments

Comments
 (0)