| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function load(ObjectManager $manager): void |
||
| 17 | { |
||
| 18 | // Original query in data.sql |
||
| 19 | // INSERT INTO branch_sync (access_url_id, branch_name, unique_id, ssl_pub_key) |
||
| 20 | // VALUES (1, 'localhost', SHA1(UUID()), SHA1(UUID())); |
||
| 21 | |||
| 22 | $url = $this->getReference(AccessUrlAdminFixtures::ACCESS_URL_REFERENCE); |
||
| 23 | |||
| 24 | $branch = (new BranchSync()) |
||
| 25 | ->setBranchName('localhost') |
||
| 26 | ->setUniqueId(sha1(Uuid::v1()->toRfc4122())) |
||
| 27 | ->setSslPubKey(sha1(Uuid::v1()->toRfc4122())) |
||
| 28 | ->setUrl($url) |
||
| 29 | ; |
||
| 30 | |||
| 31 | $manager->persist($branch); |
||
| 32 | $manager->flush(); |
||
| 33 | } |
||
| 35 |