Code Duplication    Length = 9-9 lines in 3 locations

src/Graviton/I18nBundle/Tests/Controller/TranslatableControllerTest.php 2 locations

@@ 39-47 (lines=9) @@
36
     *
37
     * @return void
38
     */
39
    public function testContainsReference()
40
    {
41
        $client = static::createRestClient();
42
43
        $client->request('GET', '/i18n/translatable/');
44
        $results = $client->getResults();
45
46
        $this->assertEquals('http://localhost/i18n/language/de', $results[1]->language->{'$ref'});
47
    }
48
49
    /**
50
     * validate linking of objects in item
@@ 54-62 (lines=9) @@
51
     *
52
     * @return void
53
     */
54
    public function testItemContainsReference()
55
    {
56
        $client = static::createRestClient();
57
58
        $client->request('GET', '/i18n/translatable/'.sha1('i18n-de-English'));
59
        $results = $client->getResults();
60
61
        $this->assertEquals('http://localhost/i18n/language/de', $results->language->{'$ref'});
62
    }
63
64
    /**
65
     * validate creating new translatables

src/Graviton/RestBundle/Tests/Controller/AsyncLockingTest.php 1 location

@@ 90-98 (lines=9) @@
87
        }
88
89
        \React\Promise\all($promiseStack)->then(
90
            function () {
91
                // after all is done; check entry
92
                $client = static::createRestClient();
93
                $client->request('GET', '/event/status/locktest');
94
                $result = $client->getResults();
95
96
                $this->assertSame(30, count($result->information));
97
                $this->assertSame(1, count($result->status));
98
            }
99
        );
100
101
        // start the whole thing