/** * Tests the textSearch method * * @return void * @covers ::textSearch */ public function testTextSearch() { $res = $this->Logs->textSearch('interesting'); $this->assertEquals(['MATCH (message) AGAINST (\'interesting\')'], $res); $res = $this->Logs->textSearch('type@foo'); $this->assertEquals(['Log.type' => 'foo'], $res); }