public function testAllRecordsStash()
 {
     $record1 = new Record($this->connection->getCurrentContentTypeDefinition(), 'New Record');
     $record1->setID(1);
     $record2 = new Record($this->connection->getCurrentContentTypeDefinition(), 'New Record');
     $record2->setID(2);
     $allRecords = [$record1, $record2];
     $dataDimensions = $this->connection->getCurrentDataDimensions();
     $result = $this->invokeMethod($this->connection, 'hasStashedAllRecords', ['profiles', $dataDimensions]);
     $this->assertFalse($result);
     $this->invokeMethod($this->connection, 'stashRecord', [$record1, $dataDimensions]);
     $result = $this->invokeMethod($this->connection, 'hasStashedAllRecords', ['profiles', $dataDimensions]);
     $this->assertFalse($result);
     $this->invokeMethod($this->connection, 'stashAllRecords', [$allRecords, $dataDimensions]);
     $result = $this->invokeMethod($this->connection, 'hasStashedAllRecords', ['profiles', $dataDimensions]);
     $this->assertTrue($result);
     $result = $this->invokeMethod($this->connection, 'getStashedAllRecords', ['profiles', $dataDimensions]);
     $this->assertCount(2, $result);
     $this->invokeMethod($this->connection, 'unStashRecord', ['profiles', 1, $dataDimensions]);
     $result = $this->invokeMethod($this->connection, 'getStashedAllRecords', ['profiles', $dataDimensions]);
     $this->assertCount(1, $result);
     $this->invokeMethod($this->connection, 'unStashAllRecords', ['profiles', $dataDimensions]);
     $result = $this->invokeMethod($this->connection, 'hasStashedAllRecords', ['profiles', $dataDimensions]);
     $this->assertFalse($result);
     $result = $this->invokeMethod($this->connection, 'getStashedAllRecords', ['profiles', $dataDimensions]);
     $this->assertFalse($result);
 }