: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @author Looks Awesome <email@looks-awesome.com>
* @link http://looks-awesome.com
* @copyright 2014-2018 Looks Awesome
class FFLinkedInTest extends PHPUnit\Framework\TestCase {
function test_status_update(){
$linkedIn = new flow\social\FFLinkedIn();
self::assertNotNull($linkedIn);
$feed->content = '3642979';
$feed->{'event-type'} = 'status-update';
$feed->type = 'linkedIn';
$feed->{'filter-by-words'} = '';
$feed->last_update = 'N/A';
$feed->use_curl_follow_location = true;
$feed->linkedin_access_token = '123';
$linkedIn->init($this->context, $feed);
$posts = $linkedIn->posts($is_empty_feed);
$this->assertTrue(is_array($posts));
// $context = ff_get_context();
// $stream = new flow\settings\FFStreamSettings($feed);
// $options = new flow\settings\FFGeneralSettings(
// 'linkedin_access_token' => 'AQWN_y3_PQ0p5yNu0y3GckVx4BfHln1G1MHQfPMxV53yvzUU5GhOFeL38l0MEiBNvMey9Te3k_l3EoJBGcf-AuG3ZopmLxmAZFY9hFZyBmbnppUBlelopurLBDu_gJ5UtcuaG7IJSmGn3l_hO1mjH5P7Drx0kxqkzwFWJuEemVPu2Q23l0U',
// 'general-settings-disable-proxy-server' => true
// $linkedIn->init($context, $options, $stream, $feed);
// var_dump($linkedIn->posts());
// var_dump($linkedIn->errors());
// foreach($linkedIn->errors() as $item){
// $this->assertTrue(is_array($item));
// $feed = (new class() extends \flow\social\FFLinkedIn {
// public function __construct() {
// parent::__construct(null);
// $data = file_get_contents('test-social-linkedin.response.json');
// $posts = $feed->posts();
$this->context['image_size_cache'] = new \flow\social\cache\FFImageSizeCacheBase();
$this->context['plugin_url'] = '';
$this->context['slug'] = 'flow-flow';