/** * Test id. * * @param Operation $operation * The operation to perform tests on. * * @dataProvider operationDataProvider */ public function testIdx(Operation $operation) { $connection = new Connection(); $operation->setIdx($connection, 'testid'); $check = $operation->idx($connection); $this->assertSame('testid', $check, 'Correct id was not set.'); }