Lines Matching refs:result
60 $result = json_decode($response->getContent(), true);
61 $this->assertIsArray($result);
64 $result['ns'],
107 $result = json_decode($response->getContent(), true);
108 $this->assertIsArray($result);
109 $this->assertSame([], $result['errors']);
110 $this->assertEquals('1', $result['lock'], 'the lock must be taken');
111 $this->assertNotEmpty($result['draft'], 'a draft-saved message must be returned');
138 $result = json_decode($response->getContent(), true);
139 $this->assertIsArray($result);
140 $this->assertNotEmpty($result['errors'], 'an invalid security token must be rejected');
141 $this->assertEquals('0', $result['lock'], 'no lock may be taken on a rejected request');
164 $result = json_decode($response->getContent(), true);
165 $this->assertIsArray($result);
166 $this->assertNotEmpty($result['errors'], 'a denied write must be reported');
167 $this->assertEquals('0', $result['lock']);
168 $this->assertSame('', $result['draft'], 'no draft may be saved when not writable');
192 $result = json_decode($response->getContent(), true);
193 $this->assertIsArray($result);
194 … $this->assertEquals('0', $result['lock'], 'a foreign lock must not be reported as freshly taken');