TheGarious /
firebase-service-bundle
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace Ghoubre\FirebaseServiceBundle\Tests\Model; |
||||||
| 4 | |||||||
| 5 | use Ghoubre\FirebaseServiceBundle\Model\FirebaseServiceLog; |
||||||
| 6 | |||||||
| 7 | use Symfony\Bundle\FrameworkBundle\Tests\TestCase; |
||||||
| 8 | |||||||
| 9 | class FirebaseServiceLogTest extends TestCase |
||||||
| 10 | { |
||||||
| 11 | |||||||
| 12 | public function testServerKey() |
||||||
| 13 | { |
||||||
| 14 | $firebaseServiceLog = $this->getFirebase(); |
||||||
| 15 | $firebaseServiceLog->setServerKey("servey_key"); |
||||||
|
0 ignored issues
–
show
|
|||||||
| 16 | $this->assertEquals("servey_key", $firebaseServiceLog->getServerKey()); |
||||||
|
0 ignored issues
–
show
The method
getServerKey() does not exist on PHPUnit\Framework\MockObject\MockObject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 17 | } |
||||||
| 18 | |||||||
| 19 | public function testBody() |
||||||
| 20 | { |
||||||
| 21 | $firebaseServiceLog = $this->getFirebase(); |
||||||
| 22 | $firebaseServiceLog->setBody("firebase_service_log_body"); |
||||||
|
0 ignored issues
–
show
The method
setBody() does not exist on PHPUnit\Framework\MockObject\MockObject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 23 | $this->assertEquals("firebase_service_log_body", $firebaseServiceLog->getBody()); |
||||||
|
0 ignored issues
–
show
The method
getBody() does not exist on PHPUnit\Framework\MockObject\MockObject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 24 | } |
||||||
| 25 | |||||||
| 26 | public function testStatus() |
||||||
| 27 | { |
||||||
| 28 | $firebaseServiceLog = $this->getFirebase(); |
||||||
| 29 | $firebaseServiceLog->setStatus(200); |
||||||
|
0 ignored issues
–
show
The method
setStatus() does not exist on PHPUnit\Framework\MockObject\MockObject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 30 | $this->assertEquals(200, $firebaseServiceLog->getStatus()); |
||||||
|
0 ignored issues
–
show
The method
getStatus() does not exist on PHPUnit\Framework\MockObject\MockObject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 31 | } |
||||||
| 32 | |||||||
| 33 | public function testFirebaseLog() |
||||||
| 34 | { |
||||||
| 35 | $firebaseServiceLog = $this->getFirebase(); |
||||||
| 36 | $firebaseServiceLog->setFirebaseLog("firebase_service_log"); |
||||||
|
0 ignored issues
–
show
The method
setFirebaseLog() does not exist on PHPUnit\Framework\MockObject\MockObject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 37 | $this->assertEquals("firebase_service_log", $firebaseServiceLog->getFirebaseLog()); |
||||||
|
0 ignored issues
–
show
The method
getFirebaseLog() does not exist on PHPUnit\Framework\MockObject\MockObject.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 38 | } |
||||||
| 39 | |||||||
| 40 | protected function getFirebase() |
||||||
| 41 | { |
||||||
| 42 | return $this->getMockForAbstractClass(FirebaseServiceLog::class); |
||||||
| 43 | } |
||||||
| 44 | } |
||||||
| 45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.