Code Duplication    Length = 11-11 lines in 2 locations

Tests/Repository/DoctrineORMTokenRepositoryTest.php 2 locations

@@ 109-119 (lines=11) @@
106
    /**
107
     * @test
108
     */
109
    public function it_create_token()
110
    {
111
        $token = new Token('string', 'jdoe','unique', 'init_password',  '+1 day', []);
112
113
        $this->manager->persist($token)
114
            ->shouldBeCalledTimes(1);
115
        $this->manager->flush($token)
116
            ->shouldBeCalledTimes(1);
117
118
        $this->repository()->create($token);
119
    }
120
121
    /**
122
     * @test
@@ 124-134 (lines=11) @@
121
    /**
122
     * @test
123
     */
124
    public function it_update_token()
125
    {
126
        $token = new Token('string', 'jdoe','unique', 'init_password',  '+1 day', []);
127
128
        $this->manager->persist($token)
129
            ->shouldBeCalledTimes(1);
130
        $this->manager->flush($token)
131
            ->shouldBeCalledTimes(1);
132
133
        $this->repository()->update($token);
134
    }
135
}
136