Code Duplication    Length = 9-9 lines in 3 locations

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

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

@@ 57-65 (lines=9) @@
54
     *
55
     * @return void
56
     */
57
    public function testContainsReference()
58
    {
59
        $client = static::createRestClient();
60
61
        $client->request('GET', '/i18n/translatable/');
62
        $results = $client->getResults();
63
64
        $this->assertEquals('http://localhost/i18n/language/de', $results[1]->language->{'$ref'});
65
    }
66
67
    /**
68
     * validate linking of objects in item
@@ 72-80 (lines=9) @@
69
     *
70
     * @return void
71
     */
72
    public function testItemContainsReference()
73
    {
74
        $client = static::createRestClient();
75
76
        $client->request('GET', '/i18n/translatable/'.sha1('i18n-de-English'));
77
        $results = $client->getResults();
78
79
        $this->assertEquals('http://localhost/i18n/language/de', $results->language->{'$ref'});
80
    }
81
82
    /**
83
     * validate creating new translatables