|
8 | 8 | date_default_timezone_set('UTC'); |
9 | 9 |
|
10 | 10 | class TransloaditTest extends \PHPUnit\Framework\TestCase { |
| 11 | + protected $transloadit; |
11 | 12 | public function setUp(): void { |
12 | 13 | $this->transloadit = new Transloadit(); |
13 | 14 | } |
14 | 15 |
|
15 | 16 | public function testConstructor() { |
16 | | - $transloadit = new Transloadit(['foo' => 'bar']); |
17 | | - $this->assertEquals('bar', $transloadit->foo); |
| 17 | + $transloadit = new Transloadit(['endpoint' => 'foobar']); |
| 18 | + $this->assertEquals('foobar', $transloadit->endpoint); |
18 | 19 | } |
19 | 20 |
|
20 | 21 | public function testAttributes() { |
@@ -77,11 +78,11 @@ public function testCancelAssembly() { |
77 | 78 | public function testRequest() { |
78 | 79 | $this->transloadit->key = 'my-key'; |
79 | 80 | $this->transloadit->secret = 'my-secret'; |
80 | | - $request = $this->transloadit->request(['foo' => 'bar'], false); |
| 81 | + $request = $this->transloadit->request(['url' => 'foobar'], false); |
81 | 82 |
|
82 | 83 | $this->assertEquals($this->transloadit->key, $request->key); |
83 | 84 | $this->assertEquals($this->transloadit->secret, $request->secret); |
84 | | - $this->assertEquals('bar', $request->foo); |
| 85 | + $this->assertEquals('foobar', $request->url); |
85 | 86 |
|
86 | 87 | // Unfortunately we can't test the $execute parameter because PHP |
87 | 88 | // is a little annoying. But that's ok for now. |
|
0 commit comments