- $credential->setHost('example.com');
- $credential->setUsername('foo');
- $credential->setPassword('bar');
+ $credential->setHost('.super.com');
+ $credential->setUsername($this->container->get('wallabag_core.helper.crypto_proxy')->crypt('.super'));
+ $credential->setPassword($this->container->get('wallabag_core.helper.crypto_proxy')->crypt('bar'));
+
+ $manager->persist($credential);
+
+ $credential = new SiteCredential($this->getReference('admin-user'));
+ $credential->setHost('paywall.example.com');
+ $credential->setUsername($this->container->get('wallabag_core.helper.crypto_proxy')->crypt('paywall.example'));
+ $credential->setPassword($this->container->get('wallabag_core.helper.crypto_proxy')->crypt('bar'));