From 28998fe9b069476ef5166a5ec4c66073bef60d36 Mon Sep 17 00:00:00 2001 From: Kevin Hellemun Date: Mon, 2 Apr 2018 11:17:28 +0200 Subject: [PATCH] Removed old test files. (bunq/sdk_php#120) --- test/BunqSdkTestBase.php | 73 --------- test/JsonParserTest.php | 124 --------------- test/Model/Generated/AttachmentPublicTest.php | 74 --------- test/Model/Generated/AvatarTest.php | 85 ---------- test/Model/Generated/CardDebitTest.php | 84 ---------- .../DraftShareInviteBankQrCodeContentTest.php | 94 ----------- .../Generated/MonetaryAccountBankTest.php | 79 ---------- test/Model/Generated/PaymentTest.php | 149 ------------------ test/Model/Generated/RequestInquiryTest.php | 125 --------------- test/Model/Generated/SessionTest.php | 35 ---- test/Model/Generated/TabUsageSingleTest.php | 146 ----------------- test/TestConfig.php | 145 ----------------- test/resource/bunq_App_Icon_Square@4x.png | Bin 9852 -> 0 bytes test/resource/config.example.json | 23 --- test/resource/installation.json | 22 --- test/resource/user_company.json | 96 ----------- 16 files changed, 1354 deletions(-) delete mode 100644 test/BunqSdkTestBase.php delete mode 100644 test/JsonParserTest.php delete mode 100644 test/Model/Generated/AttachmentPublicTest.php delete mode 100644 test/Model/Generated/AvatarTest.php delete mode 100644 test/Model/Generated/CardDebitTest.php delete mode 100644 test/Model/Generated/DraftShareInviteBankQrCodeContentTest.php delete mode 100644 test/Model/Generated/MonetaryAccountBankTest.php delete mode 100644 test/Model/Generated/PaymentTest.php delete mode 100644 test/Model/Generated/RequestInquiryTest.php delete mode 100644 test/Model/Generated/SessionTest.php delete mode 100644 test/Model/Generated/TabUsageSingleTest.php delete mode 100644 test/TestConfig.php delete mode 100644 test/resource/bunq_App_Icon_Square@4x.png delete mode 100644 test/resource/config.example.json delete mode 100644 test/resource/installation.json delete mode 100644 test/resource/user_company.json diff --git a/test/BunqSdkTestBase.php b/test/BunqSdkTestBase.php deleted file mode 100644 index be92bada..00000000 --- a/test/BunqSdkTestBase.php +++ /dev/null @@ -1,73 +0,0 @@ -save(static::FILENAME_CONTEXT_CONFIG); - - static::$apiContext = $apiContext; - } - - /** - * @return ApiContext - */ - protected static function createApiContext() - { - return ApiContext::create(BunqEnumApiEnvironmentType::SANDBOX(), TestConfig::getApiKey(), - static::DEVICE_DESCRIPTION, [TestConfig::getIpAddress()]); - } - - /** - * @return ApiContext - */ - protected static function getApiContext() - { - return static::$apiContext; - } -} diff --git a/test/JsonParserTest.php b/test/JsonParserTest.php deleted file mode 100644 index ff824ad0..00000000 --- a/test/JsonParserTest.php +++ /dev/null @@ -1,124 +0,0 @@ - - * @since 20170630 Initial creation. - */ -class JsonParserTest extends TestCase -{ - /** - * Test constants. - */ - const JSON_ID = '{"Response": [{"Id": {"id": 37}}]}'; - const EXPECTED_ID = 37; - const JSON_UUID = '{"Response": [{"Uuid": {"uuid": "5a442b1d-3d43-4285-b532-dbb21055824a"}}]}'; - const EXPECTED_UUID = '5a442b1d-3d43-4285-b532-dbb21055824a'; - const EXPECTED_TOKEN = 'a4f9d888eea84f52722b9baf2f17c289d549edf6e0eccdbf868eb922be306fb6'; - const EXPECTED_PUBLIC_KEY = 'My server public key'; - const EXPECTED_NAME_BUNQ = 'bunq'; - const EXPECTED_EMAIL_BRAVO = 'bravo@bunq.com'; - const EXPECTED_INSTALLATION_ID = 26; - - /** - * Resource location constants. - */ - const RESOURCE_INSTALLATION_JSON = '/resource/installation.json'; - const RESOURCE_USER_COMPANY_JSON = '/resource/user_company.json'; - - /** - * Function constants. - */ - const FUNCTION_CLASS_FROM_JSON = 'classFromJson'; - const FUNCTION_FROM_JSON = 'fromJson'; - const FUNCTION_PROCESS_FOR_ID = 'processForId'; - const FUNCTION_PROCESS_FOR_UUID = 'processForUuid'; - - /** - * Call a private static method on a class. - * - * @param string $class - * @param string $method - * @param array $args - * - * @return mixed - */ - private function callPrivateStaticMethod($class, $method, array $args) - { - $reflectionClass = new \ReflectionClass($class); - $createFromJsonMethod = $reflectionClass->getMethod($method); - $createFromJsonMethod->setAccessible(true); - - return $createFromJsonMethod->invokeArgs(null, $args); - } - - /** - * Test creation of Id. - */ - public function testCreateIdFromJson() - { - $id = $this->callPrivateStaticMethod(BunqModel::class, self::FUNCTION_PROCESS_FOR_ID, [self::JSON_ID]); - - static::assertEquals(self::EXPECTED_ID, $id); - } - - /** - * Test creation of Uuid. - */ - public function testCreateUuidFromJson() - { - $uuid = $this->callPrivateStaticMethod(BunqModel::class, self::FUNCTION_PROCESS_FOR_UUID, [self::JSON_UUID]); - - static::assertEquals(self::EXPECTED_UUID, $uuid); - } - - /** - * Test creation of UserCompany. - */ - public function testCreateFromJson() - { - $userCompanyJson = FileUtil::getFileContents(__DIR__ . self::RESOURCE_USER_COMPANY_JSON); - /** @var UserCompany $userCompany */ - $userCompany = $this->callPrivateStaticMethod( - UserCompany::class, - self::FUNCTION_FROM_JSON, - [$userCompanyJson] - ); - - static::assertInstanceOf(UserCompany::class, $userCompany); - static::assertEquals(self::EXPECTED_NAME_BUNQ, $userCompany->getName()); - static::assertEquals(self::EXPECTED_EMAIL_BRAVO, $userCompany->getAlias()[0]->getValue()); - static::assertInstanceOf(Amount::class, $userCompany->getDailyLimitWithoutConfirmationLogin()); - } - - /** - * Test creating a predefined class from json. - */ - public function testCreateClassFormJson() - { - /** @var Installation $installation */ - $installation = $this->callPrivateStaticMethod( - BunqModel::class, - self::FUNCTION_CLASS_FROM_JSON, - [ - Installation::class, - FileUtil::getFileContents(__DIR__ . self::RESOURCE_INSTALLATION_JSON), - ] - ); - - static::assertInstanceOf(Installation::class, $installation); - static::assertEquals(self::EXPECTED_INSTALLATION_ID, $installation->getId()->getId()); - static::assertEquals(self::EXPECTED_TOKEN, $installation->getToken()->getToken()); - static::assertEquals( - self::EXPECTED_PUBLIC_KEY, - $installation->getServerPublicKey()->getServerPublicKey()->getKey() - ); - } -} diff --git a/test/Model/Generated/AttachmentPublicTest.php b/test/Model/Generated/AttachmentPublicTest.php deleted file mode 100644 index 8e3cbd6c..00000000 --- a/test/Model/Generated/AttachmentPublicTest.php +++ /dev/null @@ -1,74 +0,0 @@ -getFileContentsOfAttachment(); - $customHeadersMap = [ - ApiClient::HEADER_CONTENT_TYPE => static::$contentType, - ApiClient::HEADER_ATTACHMENT_DESCRIPTION => static::$attachmentDescription, - ]; - - $beforeUuid = AttachmentPublic::create(static::getApiContext(), $beforeBytes, $customHeadersMap); - $bytesAfter = AttachmentPublicContent::listing(static::getApiContext(), $beforeUuid); - - static::assertEquals($beforeBytes, $bytesAfter); - } - - /** - * @return string - */ - private function getFileContentsOfAttachment() - { - $path = __DIR__ . self::PATH_ATTACHMENT . static::$attachmentPathIn; - - return FileUtil::getFileContents($path); - } -} diff --git a/test/Model/Generated/AvatarTest.php b/test/Model/Generated/AvatarTest.php deleted file mode 100644 index 9e9704c0..00000000 --- a/test/Model/Generated/AvatarTest.php +++ /dev/null @@ -1,85 +0,0 @@ -getFileContentsOfAttachment(); - $customHeadersMap = [ - ApiClient::HEADER_ATTACHMENT_DESCRIPTION => static::$attachmentDescription, - ApiClient::HEADER_CONTENT_TYPE => static::$contentType, - ]; - - $attachmentUuidBefore = AttachmentPublic::create(static::getApiContext(), $fileContentsBefore, $customHeadersMap); - $avatarMap = [ - Avatar::FIELD_ATTACHMENT_PUBLIC_UUID => $attachmentUuidBefore, - ]; - $avatarUuid = Avatar::create(static::getApiContext(), $avatarMap); - - $attachmentUuidAfter = Avatar::get(static::getApiContext(), $avatarUuid); - $imageInfoArray = $attachmentUuidAfter->getImage(); - $attachmentPublicUuid = $imageInfoArray[self::INDEX_FIRST]->getAttachmentPublicUuid(); - $fileContentsAfter = AttachmentPublicContent::listing(static::getApiContext(), $attachmentPublicUuid); - - static::assertEquals($fileContentsBefore, $fileContentsAfter); - } - - /** - * @return string - */ - private function getFileContentsOfAttachment() - { - $path = __DIR__ . self::PATH_ATTACHMENT . static::$attachmentPathIn; - - return FileUtil::getFileContents($path); - } -} diff --git a/test/Model/Generated/CardDebitTest.php b/test/Model/Generated/CardDebitTest.php deleted file mode 100644 index e29a039e..00000000 --- a/test/Model/Generated/CardDebitTest.php +++ /dev/null @@ -1,84 +0,0 @@ -getPossibleCardNameArray(); - static::$alias = - User::listing(static::getApiContext())[self::INDEX_FIRST]->getUserCompany()->getAlias( - )[self::INDEX_FIRST]; - } - - /** - * Test if the user can order a new card with an unique second line. - */ - public function testOrderingDebitCard() - { - $apiContext = static::getApiContext(); - $alias = new Pointer(static::$alias->getType(), static::$alias->getValue()); - - $cardDebitMap = [ - CardDebit::FIELD_ALIAS => $alias, - CardDebit::FIELD_SECOND_LINE => uniqid(self::CARD_SECOND_LINE_PREFIX), - CardDebit::FIELD_PIN_CODE => self::CARD_PIN_CODE, - CardDebit::FIELD_NAME_ON_CARD => static::$nameOnCard[self::INDEX_FIRST], - ]; - $cardDebit = CardDebit::create($apiContext, $cardDebitMap, static::$userId); - $card = Card::get($apiContext, static::$userId, $cardDebit->getId()); - - static::assertEquals($cardDebit->getNameOnCard(), $card->getNameOnCard()); - static::assertEquals($cardDebit->getCreated(), $card->getCreated()); - static::assertEquals($cardDebit->getSecondLine(), $card->getSecondLine()); - } -} diff --git a/test/Model/Generated/DraftShareInviteBankQrCodeContentTest.php b/test/Model/Generated/DraftShareInviteBankQrCodeContentTest.php deleted file mode 100644 index dc536c6b..00000000 --- a/test/Model/Generated/DraftShareInviteBankQrCodeContentTest.php +++ /dev/null @@ -1,94 +0,0 @@ -createConnect($apiContext); - $qrContent = $this->getQrContent($apiContext, $draftShareId); - file_put_contents(self::PATH_QR_OUTPUT, $qrContent); - } - - /** - * @param ApiContext $apiContext - * - * @return int - */ - private function createConnect($apiContext) - { - $readOnly = new ShareDetailReadOnly(true, true, true); - $shareDetail = new ShareDetail(); - $shareDetail->setReadOnly($readOnly); - $draftMap = [ - DraftShareInviteBank::FIELD_EXPIRATION => static::$expirationDate, - DraftShareInviteBank::FIELD_DRAFT_SHARE_SETTINGS => new DraftShareInviteBankEntry($shareDetail), - ]; - - return DraftShareInviteBank::create($apiContext, $draftMap, static::$userId); - } - - /** - * @param ApiContext $apiContext - * @param int $draftShareId - * - * @return string - */ - private function getQrContent($apiContext, $draftShareId) - { - return DraftShareInviteBankQrCodeContent::listing($apiContext, static::$userId, $draftShareId); - } -} diff --git a/test/Model/Generated/MonetaryAccountBankTest.php b/test/Model/Generated/MonetaryAccountBankTest.php deleted file mode 100644 index 3c1b5fed..00000000 --- a/test/Model/Generated/MonetaryAccountBankTest.php +++ /dev/null @@ -1,79 +0,0 @@ - self::STATUS, - MonetaryAccountBank::FIELD_SUB_STATUS => self::SUB_STATUS, - MonetaryAccountBank::FIELD_REASON => self::REASON, - MonetaryAccountBank::FIELD_REASON_DESCRIPTION => self::REASON_DESCRIPTION, - ]; - - MonetaryAccountBank::update($apiContext, $requestMap, static::$userId, static::$monetaryAccountBankToCloseId); - } - } - - /** - * Test making a new monetary account with an unique description. - * - * This test has no assertion as of its testing to see if the code runs without errors. - */ - public function testCreateNewMonetaryAccount() - { - $apiContext = static::getApiContext(); - $requestMap = [ - MonetaryAccountBank::FIELD_CURRENCY => self::CURRENCY, - MonetaryAccountBank::FIELD_DESCRIPTION => uniqid(self::PREFIX_MONETARY_ACCOUNT_DESCRIPTION), - ]; - - static::$monetaryAccountBankToCloseId = MonetaryAccountBank::create($apiContext, $requestMap, static::$userId); - } -} diff --git a/test/Model/Generated/PaymentTest.php b/test/Model/Generated/PaymentTest.php deleted file mode 100644 index 74248540..00000000 --- a/test/Model/Generated/PaymentTest.php +++ /dev/null @@ -1,149 +0,0 @@ - new Pointer( - static::$counterTypeOtherUser, - static::$counterAliasOtherUser - ), - Payment::FIELD_AMOUNT => new Amount(self::PAYMENT_AMOUNT_IN_EUR, self::PAYMENT_CURRENCY), - Payment::FIELD_DESCRIPTION => self::PAYMENT_DESCRIPTION, - ]; - - Payment::create($apiContext, $requestMap, static::$userId, static::$monetaryAccountId); - } - - /** - * Test sending money to other monetaryAccount. - * - * This test has no assertion as of its testing to see if the code runs without errors. - */ - public function testSendMoneyToOtherMonetaryAccount() - { - $apiContext = static::getApiContext(); - $requestMap = [ - Payment::FIELD_AMOUNT => new Amount(self::PAYMENT_AMOUNT_IN_EUR, self::PAYMENT_CURRENCY), - Payment::FIELD_COUNTERPARTY_ALIAS => new Pointer( - static::$counterTypeSameUserOtherAccount, - static::$counterAliasSameUserOtherAccount - ), - Payment::FIELD_DESCRIPTION => self::PAYMENT_DESCRIPTION, - ]; - - static::$paymentId = Payment::create($apiContext, $requestMap, static::$userId, static::$monetaryAccountId); - } - - /** - * Test sending a payment chat to a payment. - * - * This test has no assertion as of its testing to see if the code runs without errors. - * - * @depends testSendMoneyToOtherMonetaryAccount - */ - public function testSendMessageToPayment() - { - $apiContext = static::getApiContext(); - $chatId = PaymentChat::create( - $apiContext, - [], - static::$userId, - static::$monetaryAccountId, - static::$paymentId - ); - $messageMap = [ - ChatMessageText::FIELD_TEXT => self::PAYMENT_CHAT_TEXT_MESSAGE, - ]; - - ChatMessageText::create($apiContext, $messageMap, static::$userId, $chatId); - } -} diff --git a/test/Model/Generated/RequestInquiryTest.php b/test/Model/Generated/RequestInquiryTest.php deleted file mode 100644 index a7854f40..00000000 --- a/test/Model/Generated/RequestInquiryTest.php +++ /dev/null @@ -1,125 +0,0 @@ -sendRequest($apiContext); - $requestResponseId = RequestResponse::listing($apiContext, static::$userId, static::$monetaryAccountId2)[ - self::INDEX_FIRST]->getId(); - $this->acceptRequest($apiContext, $requestResponseId); - } - - /** - * @param ApiContext $apiContext - */ - private function sendRequest($apiContext) - { - $requestMap = [ - RequestInquiry::FIELD_AMOUNT_INQUIRED => new Amount(self::REQUEST_AMOUNT_IN_EUR, - self::REQUEST_CURRENCY), - RequestInquiry::FIELD_COUNTERPARTY_ALIAS => new Pointer(static::$counterType, static::$counterAlias), - RequestInquiry::FIELD_DESCRIPTION => self::REQUEST_DESCRIPTION, - RequestInquiry::FIELD_ALLOW_BUNQME => false, - ]; - - RequestInquiry::create($apiContext, $requestMap, static::$userId, static::$monetaryAccountId); - } - - /** - * @param ApiContext $apiContext - * @param int $requestResponseId - */ - private function acceptRequest($apiContext, $requestResponseId) - { - $responseMap = [ - RequestResponse::FIELD_STATUS => self::REQUEST_STATUS_ACCEPTED, - ]; - - RequestResponse::update( - $apiContext, - $responseMap, - static::$userId, - static::$monetaryAccountId2, - $requestResponseId - ); - } -} - diff --git a/test/Model/Generated/SessionTest.php b/test/Model/Generated/SessionTest.php deleted file mode 100644 index 0a326261..00000000 --- a/test/Model/Generated/SessionTest.php +++ /dev/null @@ -1,35 +0,0 @@ - self::TAB_DESCRIPTION, - TabUsageSingle::FIELD_STATUS => self::TAB_STATUS_BEFORE, - TabUsageSingle::FIELD_AMOUNT_TOTAL => new Amount(self::AMOUNT_IN_EUR, self::TAB_CURRENCY), - ]; - static::$tabUuid = TabUsageSingle::create( - $apiContext, - $tabUsageSingleCreateMap, - static::$userId, - static::$monetaryAccountId, - static::$cashRegisterId - ); - } - - /** - * Tests adding a new tab item to an existing tab. - * - * @depends testCreateTab - */ - public function testAddItemToTab() - { - $apiContext = static::getApiContext(); - - $tabItemShopMap = [ - TabItemShop::FIELD_DESCRIPTION => self::ITEM_DESCRIPTION, - TabItemShop::FIELD_AMOUNT => new Amount(self::AMOUNT_IN_EUR, self::TAB_CURRENCY), - ]; - TabItemShop::create( - $apiContext, - $tabItemShopMap, - static::$userId, - static::$monetaryAccountId, - static::$cashRegisterId, - static::$tabUuid - ); - } - - /** - * Tests updating a tab after adding an item to it. - * - * @depends testAddItemToTab - */ - public function testUpdateTab() - { - $apiContext = static::getApiContext(); - - $tabUsageSingleUpdateMap = [ - TabUsageSingle::FIELD_STATUS => self::TAB_STATUS_AFTER, - ]; - TabUsageSingle::update( - $apiContext, - $tabUsageSingleUpdateMap, - static::$userId, - static::$monetaryAccountId, - static::$cashRegisterId, - static::$tabUuid - ); - } -} diff --git a/test/TestConfig.php b/test/TestConfig.php deleted file mode 100644 index 7a43d2cb..00000000 --- a/test/TestConfig.php +++ /dev/null @@ -1,145 +0,0 @@ -C=RIe3@435s@63L7w#`hE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w1m8e0CB{u=}F-@uRmFQZ+KRDow& W_jirN)u|CoG@$NdlOd~gl` diff --git a/test/resource/config.example.json b/test/resource/config.example.json deleted file mode 100644 index d2753da4..00000000 --- a/test/resource/config.example.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "API_KEY": "", - "USER_ID": "xxxx", - "MONETARY_ACCOUNT_ID": "xxxx", - "MONETARY_ACCOUNT_ID2": "xxxx", - "ipAddress": "", - "AttachmentPublicTest":{ - "CONTENT_TYPE": "image/png", - "DESCRIPTION": "TEST PNG PHP", - "PATH_IN": "/bunq_App_Icon_Square@4x.png" - }, - "TabUsageSingleTest": { - "CASH_REGISTER_ID": "xxx" - }, - "CounterPartySelf": { - "Alias": "", - "Type": "EMAIL" - }, - "CounterPartyOther": { - "Alias": "", - "Type": "EMAIL" - } -} diff --git a/test/resource/installation.json b/test/resource/installation.json deleted file mode 100644 index b7073856..00000000 --- a/test/resource/installation.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Response": [ - { - "Id": { - "id": 26 - } - }, - { - "Token": { - "id": 134, - "created": "2015-06-13 23:19:16.215235", - "updated": "2015-06-30 09:12:31.981573", - "token": "a4f9d888eea84f52722b9baf2f17c289d549edf6e0eccdbf868eb922be306fb6" - } - }, - { - "ServerPublicKey": { - "server_public_key": "My server public key" - } - } - ] -} diff --git a/test/resource/user_company.json b/test/resource/user_company.json deleted file mode 100644 index 6e67d3af..00000000 --- a/test/resource/user_company.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "Response": [ - { - "UserCompany": { - "id": 42, - "created": "2015-06-13 23:19:16.215235", - "updated": "2015-06-30 09:12:31.981573", - "public_uuid": "252e-fb1e-04b74214-b9e9467c3-c6d2fbf", - "name": "bunq", - "display_name": "bunq", - "public_nick_name": "bunq", - "alias": [ - { - "type": "EMAIL", - "value": "bravo@bunq.com", - "name": "" - } - ], - "chamber_of_commerce_number": "NL040492904", - "type_of_business_entity": "One man business", - "sector_of_industry": "Education", - "counter_bank_iban": "NL12BUNQ1234567890", - "avatar": { - "uuid": "5a442bed-3d43-4a85-b532-dbb251052f4a", - "anchor_uuid": "f0de919f-8c36-46ee-acb7-ea9c35c1b231", - "image": [ - { - "attachment_public_uuid": "d93e07e3-d420-45e5-8684-fc0c09a63686", - "content_type": "image/jpeg", - "height": 380, - "width": 520 - } - ] - }, - "address_main": { - "street": "Example Boulevard", - "house_number": "123a", - "po_box": "09392", - "postal_code": "1234AA", - "city": "Amsterdam", - "country": "NL" - }, - "address_postal": { - "street": "Example Boulevard", - "house_number": "123a", - "po_box": "09392", - "postal_code": "1234AA", - "city": "Amsterdam", - "country": "NL" - }, - "version_terms_of_service": "1.2", - "director_alias": { - "uuid": "252e-fb1e-04b74214-b9e9467c3-c6d2fbf", - "avatar": { - "uuid": "5a442bed-3d43-4a85-b532-dbb251052f4a", - "anchor_uuid": "f0de919f-8c36-46ee-acb7-ea9c35c1b231", - "image": [ - { - "attachment_public_uuid": "d93e07e3-d420-45e5-8684-fc0c09a63686", - "content_type": "image/jpeg", - "height": 380, - "width": 520 - } - ] - }, - "public_nick_name": "Mary", - "display_name": "Mary", - "country": "NL" - }, - "language": "en_US", - "region": "en_US", - "ubo": [ - { - "name": "A. Person", - "date_of_birth": "1990-03-27", - "nationality": "NL" - } - ], - "status": "ACTIVE", - "sub_status": "APPROVAL", - "session_timeout": 1, - "daily_limit_without_confirmation_login": { - "value": "12.50", - "currency": "EUR" - }, - "notification_filters": [ - { - "notification_delivery_method": "URL", - "notification_target": "https://my.company.com/callback-url", - "category": "PAYMENT" - } - ] - } - } - ] -}