Skip to content

Commit b838f09

Browse files
committed
[TEST] Mocked object not used, remove
1 parent b018f9b commit b838f09

File tree

1 file changed

+1
-9
lines changed
  • tests/Elasticsearch/Tests/Endpoints/Indices/Alias

1 file changed

+1
-9
lines changed

tests/Elasticsearch/Tests/Endpoints/Indices/Alias/PutTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,7 @@ public function testNoBody()
6262
public function testNoIndex()
6363
{
6464
$body = array('field' => 'value');
65-
$mockTransport = m::mock('\Elasticsearch\Transport')
66-
->shouldReceive('performRequest')->once()
67-
->with(
68-
'PUT',
69-
'/_alias/testName',
70-
array(),
71-
$body
72-
)
73-
->getMock();
65+
$mockTransport = m::mock('\Elasticsearch\Transport');
7466

7567
$action = new Put($mockTransport);
7668
$action->setBody($body)->setName('testName')->performRequest();

0 commit comments

Comments
 (0)