<?php


// /// simple mocking wordpress functions
// namespace {
//     // This allow us to configure the behavior of the "global mock"
//     function add_shortcode( $a, $b ) {};

//     function get_post( $post_id=0 ){
//         return (object) [
//             'ID' => 1,
//             'post_title' => 'test',
//             'post_content' => 'test',
//             'post_excerpt' => 'test',            
//         ];
//     }
// }

namespace Blazemedia\Affiliation\Test\Rendering {

use PHPUnit\Framework\TestCase;


class LinkTest extends TestCase {

    private LinkExtended $link;

    public function setUp(): void {
		
        parent::setUp();

        $this->link = new LinkExtended();
    }

    /** @test */
    function can_do_test(){

        $this->assertTrue(true);
    }

    /** @__test */
    function can_get_the_program_id() {

        /*
        $this->link->manageLink( [
            "link"    => "https://www.xvuslink.com/?a_fid=Blaze&data1={tracking_id}",
            "program" => "expressvpn",
            "subject" => "vpn"            
        ], 'ciaone', '[affiliate_link link="https://www.xvuslink.com/?a_fid=Blaze&data1=guide_vpn_ctabutton_expressvpn" program="expressvpn" subject="vpn"]bye[/affiliate_link]');

        $this->assertEquals( '25', $this->link->getProgramId(), 'Failed taking the Program ID' );*/
    }

    /** @test */
    // function can_get_the_link() {

    //     $this->link->manageLink( ['link' => 'https://www.example.com' ], '','');

    //     $this->assertEquals( 'https://www.example.com', $this->link->getUrl(), 'Failed taking the url' );
    // }

    /** @test */
    // function can_get_the_markup() {

    
    // }
    
}}
