Browse Source

Update misspelled method, somehow resolves #19

pull/14/head
Timothy Warren 5 months ago
parent
commit
94e61e35a8
2 changed files with 7 additions and 7 deletions
  1. 1
    1
      src/API/Kitsu/ListItem.php
  2. 6
    6
      tests/API/APIRequestBuilderTest.php

+ 1
- 1
src/API/Kitsu/ListItem.php View File

@@ -105,7 +105,7 @@ final class ListItem implements ListItemInterface {
105 105
 			$request = $request->setHeader('Authorization', $authHeader);
106 106
 		}
107 107
 
108
-		$request = $request->getFullReqest();
108
+		$request = $request->getFullRequest();
109 109
 		$response = getResponse($request);
110 110
 		return Json::decode(wait($response->getBody()));
111 111
 	}

+ 6
- 6
tests/API/APIRequestBuilderTest.php View File

@@ -39,7 +39,7 @@ class APIRequestBuilderTest extends TestCase {
39 39
 		$this->builder->setLogger(new NullLogger);
40 40
 	}
41 41
 
42
-	public function testGzipRequest()
42
+	public function testGzipRequest(): void
43 43
 	{
44 44
 		$request = $this->builder->newRequest('GET', 'gzip')
45 45
 			->getFullRequest();
@@ -48,14 +48,14 @@ class APIRequestBuilderTest extends TestCase {
48 48
 		$this->assertEquals(1, $body['gzipped']);
49 49
 	}
50 50
 
51
-	public function testInvalidRequestMethod()
51
+	public function testInvalidRequestMethod(): void
52 52
 	{
53 53
 		$this->expectException(\InvalidArgumentException::class);
54 54
 		$this->builder->newRequest('FOO', 'gzip')
55 55
 			->getFullRequest();
56 56
 	}
57 57
 
58
-	public function testRequestWithBasicAuth()
58
+	public function testRequestWithBasicAuth(): void
59 59
 	{
60 60
 		$request = $this->builder->newRequest('GET', 'headers')
61 61
 			->setBasicAuth('username', 'password')
@@ -67,7 +67,7 @@ class APIRequestBuilderTest extends TestCase {
67 67
 		$this->assertEquals('Basic dXNlcm5hbWU6cGFzc3dvcmQ=', $body['headers']['Authorization']);
68 68
 	}
69 69
 
70
-	public function testRequestWithQueryString()
70
+	public function testRequestWithQueryString(): void
71 71
 	{
72 72
 		$query = [
73 73
 			'foo' => 'bar',
@@ -95,7 +95,7 @@ class APIRequestBuilderTest extends TestCase {
95 95
 		$this->assertEquals($expected, $body['args']);
96 96
 	}
97 97
 
98
-	public function testFormValueRequest()
98
+	public function testFormValueRequest(): void
99 99
 	{
100 100
 		$formValues = [
101 101
 			'foo' => 'bar',
@@ -112,7 +112,7 @@ class APIRequestBuilderTest extends TestCase {
112 112
 		$this->assertEquals($formValues, $body['form']);
113 113
 	}
114 114
 
115
-	public function testFullUrlRequest()
115
+	public function testFullUrlRequest(): void
116 116
 	{
117 117
 		$data = [
118 118
 			'foo' => [

Loading…
Cancel
Save