public function RestProcessorTest::testProcessData in Radioactivity 8.3
Same name and namespace in other branches
- 4.0.x tests/src/Unit/RestProcessorTest.php \Drupal\Tests\radioactivity\Unit\RestProcessorTest::testProcessData()
@covers ::processData
File
- tests/
src/ Unit/ RestProcessorTest.php, line 38
Class
- RestProcessorTest
- @coversDefaultClass \Drupal\radioactivity\RestProcessor @group radioactivity
Namespace
Drupal\Tests\radioactivity\UnitCode
public function testProcessData() {
$data = '[{"fn":"field_ra","et":"node","id":"66","e":10,"h":"12345678"}]';
$response = $this->sut
->processData($data);
$this
->assertEquals('{"status":"ok","message":"Inserted."}', $response);
}